aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Configurations
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-01-30 11:31:21 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-01-30 11:31:21 +0200
commitff91162eb83dcf19402240ae8fa06f70cbf2b9e0 (patch)
tree2948559f7326c8221f799d4aaf794c5e00c06bd9 /src/DevHive.Web/Configurations
parentdde27f48caf455f9b342d68b0a4a5c95f302b9f7 (diff)
downloadDevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar.gz
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.zip
Separated comment models, controler and service from post's
Diffstat (limited to 'src/DevHive.Web/Configurations')
-rw-r--r--src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs4
-rw-r--r--src/DevHive.Web/Configurations/Mapping/CommentMappings.cs7
-rw-r--r--src/DevHive.Web/Configurations/Mapping/PostMappings.cs4
3 files changed, 6 insertions, 9 deletions
diff --git a/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs b/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs
index fe2c788..8ba0d69 100644
--- a/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs
+++ b/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs
@@ -1,5 +1,4 @@
using DevHive.Data.Interfaces.Repositories;
-using DevHive.Data.Models;
using DevHive.Data.Repositories;
using DevHive.Services.Interfaces;
using DevHive.Services.Services;
@@ -8,7 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
namespace DevHive.Web.Configurations.Extensions
{
- public static class ConfigureDependencyInjection
+ public static class ConfigureDependencyInjection
{
public static void DependencyInjectionConfiguration(this IServiceCollection services, IConfiguration configuration)
{
@@ -25,6 +24,7 @@ namespace DevHive.Web.Configurations.Extensions
services.AddTransient<ITechnologyService, TechnologyService>();
services.AddTransient<IUserService, UserService>();
services.AddTransient<IPostService, PostService>();
+ services.AddTransient<ICommentService, CommentService>();
services.AddTransient<IFeedService, FeedService>();
services.AddTransient<ICloudService, CloudinaryService>(options =>
new CloudinaryService(
diff --git a/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs b/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
index a28ee16..b8d6829 100644
--- a/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
+++ b/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
@@ -1,6 +1,6 @@
using AutoMapper;
-using DevHive.Services.Models.Post.Comment;
-using DevHive.Web.Models.Post.Comment;
+using DevHive.Services.Models.Comment;
+using DevHive.Web.Models.Comment;
namespace DevHive.Web.Configurations.Mapping
{
@@ -15,6 +15,3 @@ namespace DevHive.Web.Configurations.Mapping
}
}
}
-
-
-
diff --git a/src/DevHive.Web/Configurations/Mapping/PostMappings.cs b/src/DevHive.Web/Configurations/Mapping/PostMappings.cs
index bc7bc06..a5b46ee 100644
--- a/src/DevHive.Web/Configurations/Mapping/PostMappings.cs
+++ b/src/DevHive.Web/Configurations/Mapping/PostMappings.cs
@@ -1,6 +1,6 @@
using AutoMapper;
-using DevHive.Services.Models.Post.Post;
-using DevHive.Web.Models.Post.Post;
+using DevHive.Services.Models.Post;
+using DevHive.Web.Models.Post;
namespace DevHive.Web.Configurations.Mapping
{