Web and Desktop - comment threads
This commit is contained in:
@@ -1,6 +1,40 @@
|
||||
namespace StudentHouseDashboard.Managers;
|
||||
using StudentHouseDashboard.Models;
|
||||
using StudentHouseDashboard.Repositories;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
public class CommentManager
|
||||
namespace StudentHouseDashboard.Managers
|
||||
{
|
||||
//TODO: CRUD
|
||||
}
|
||||
public class CommentManager
|
||||
{
|
||||
private CommentRepository commentRepository;
|
||||
public CommentManager()
|
||||
{
|
||||
commentRepository = new CommentRepository();
|
||||
}
|
||||
|
||||
public void CreateCommentToAnnouncement(User author, string description, string title, DateTime publishDate, int announcementId)
|
||||
{
|
||||
commentRepository.CreateCommentOnAnnouncement(author, description, title, publishDate, announcementId);
|
||||
}
|
||||
public void CreateResponseToComment(User author, string description, string title, DateTime publishDate, int commentId)
|
||||
{
|
||||
commentRepository.CreateResponseOnComment(author, description, title, publishDate, commentId);
|
||||
}
|
||||
public void UpdateComment(int id, string description)
|
||||
{
|
||||
commentRepository.UpdateComment(id, description);
|
||||
}
|
||||
public void DeleteCommentOnAnnouncement(int commentId, int announcementId)
|
||||
{
|
||||
commentRepository.DeleteCommentOnAnnouncement(commentId, announcementId);
|
||||
}
|
||||
public void DeleteResponseOnComment(int responseId, int commentId)
|
||||
{
|
||||
commentRepository.DeleteResponseOnComment(responseId, commentId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user