From 6a2c2a2c33b007eb3e0f5982f26287f4419df66f Mon Sep 17 00:00:00 2001 From: littlefoot Date: Fri, 15 Jul 2022 12:34:57 -0400 Subject: [PATCH] Move DTOs out to remove dependency on api --- {WebNovelPortalAPI => Shared/Models}/DTO/ScrapeNovelRequest.cs | 2 +- WebNovelPortal/AccessLayers/WebApiAccessLayer.cs | 2 +- WebNovelPortal/WebNovelPortal.csproj | 1 - WebNovelPortalAPI/Controllers/NovelController.cs | 2 +- WebNovelPortalAPI/WebNovelPortalAPI.csproj | 1 + 5 files changed, 4 insertions(+), 4 deletions(-) rename {WebNovelPortalAPI => Shared/Models}/DTO/ScrapeNovelRequest.cs (70%) diff --git a/WebNovelPortalAPI/DTO/ScrapeNovelRequest.cs b/Shared/Models/DTO/ScrapeNovelRequest.cs similarity index 70% rename from WebNovelPortalAPI/DTO/ScrapeNovelRequest.cs rename to Shared/Models/DTO/ScrapeNovelRequest.cs index 9878bd9..b5cd979 100644 --- a/WebNovelPortalAPI/DTO/ScrapeNovelRequest.cs +++ b/Shared/Models/DTO/ScrapeNovelRequest.cs @@ -1,4 +1,4 @@ -namespace WebNovelPortalAPI.DTO; +namespace Shared.Models.DTO; public class ScrapeNovelRequest { diff --git a/WebNovelPortal/AccessLayers/WebApiAccessLayer.cs b/WebNovelPortal/AccessLayers/WebApiAccessLayer.cs index 6d0b058..f862f43 100644 --- a/WebNovelPortal/AccessLayers/WebApiAccessLayer.cs +++ b/WebNovelPortal/AccessLayers/WebApiAccessLayer.cs @@ -1,6 +1,6 @@ using DBConnection.Models; using Shared.AccessLayers; -using WebNovelPortalAPI.DTO; +using Shared.Models.DTO; namespace WebNovelPortal.AccessLayers; diff --git a/WebNovelPortal/WebNovelPortal.csproj b/WebNovelPortal/WebNovelPortal.csproj index 011d7b8..7feead2 100644 --- a/WebNovelPortal/WebNovelPortal.csproj +++ b/WebNovelPortal/WebNovelPortal.csproj @@ -14,7 +14,6 @@ - diff --git a/WebNovelPortalAPI/Controllers/NovelController.cs b/WebNovelPortalAPI/Controllers/NovelController.cs index 8343566..f5f80ae 100644 --- a/WebNovelPortalAPI/Controllers/NovelController.cs +++ b/WebNovelPortalAPI/Controllers/NovelController.cs @@ -8,7 +8,7 @@ using DBConnection.Repositories; using DBConnection.Repositories.Interfaces; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using WebNovelPortalAPI.DTO; +using Shared.Models.DTO; using WebNovelPortalAPI.Scrapers; namespace WebNovelPortalAPI.Controllers diff --git a/WebNovelPortalAPI/WebNovelPortalAPI.csproj b/WebNovelPortalAPI/WebNovelPortalAPI.csproj index cdd980a..f011053 100644 --- a/WebNovelPortalAPI/WebNovelPortalAPI.csproj +++ b/WebNovelPortalAPI/WebNovelPortalAPI.csproj @@ -21,6 +21,7 @@ +