aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Configurations
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-30 21:21:49 +0200
committertranstrike <transtrike@gmail.com>2020-12-30 21:21:49 +0200
commit278130d86378a6b2db6ba443631f303fb7d7e207 (patch)
tree72fa0ad4889a9f18cdd0a54992dc151784323c83 /src/DevHive.Web/Configurations
parenta96478dd52250c4f5b494c66806d5e97156c48b3 (diff)
downloadDevHive-278130d86378a6b2db6ba443631f303fb7d7e207.tar
DevHive-278130d86378a6b2db6ba443631f303fb7d7e207.tar.gz
DevHive-278130d86378a6b2db6ba443631f303fb7d7e207.zip
Implemented Posts and merged Comment to Post
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
2 files changed, 5 insertions, 6 deletions
diff --git a/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs b/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs
index 76d7c6f..2707d91 100644
--- a/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs
+++ b/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs
@@ -12,13 +12,13 @@ namespace DevHive.Web.Configurations.Extensions
services.AddTransient<RoleService>();
services.AddTransient<TechnologyService>();
services.AddTransient<UserService>();
- services.AddTransient<CommentService>();
+ services.AddTransient<PostService>();
services.AddTransient<LanguageRepository>();
services.AddTransient<RoleRepository>();
services.AddTransient<TechnologyRepository>();
services.AddTransient<UserRepository>();
- services.AddTransient<CommentRepository>();
+ services.AddTransient<PostRepository>();
}
}
} \ No newline at end of file
diff --git a/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs b/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
index dd11420..394490e 100644
--- a/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
+++ b/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
@@ -1,10 +1,10 @@
using AutoMapper;
-using DevHive.Web.Models.Comment;
-using DevHive.Services.Models.Comment;
+using DevHive.Services.Models.Post.Comment;
+using DevHive.Web.Models.Post.Comment;
namespace DevHive.Web.Configurations.Mapping
{
- public class CommentMappings : Profile
+ public class CommentMappings : Profile
{
public CommentMappings()
{
@@ -12,7 +12,6 @@ namespace DevHive.Web.Configurations.Mapping
CreateMap<CommentWebModel, UpdateCommentServiceModel>();
CreateMap<CommentServiceModel, CommentWebModel>();
CreateMap<CommentWebModel, CommentServiceModel>();
- CreateMap<GetByIdCommentServiceModel, GetByIdCommentWebModel>();
}
}
} \ No newline at end of file