Add post, fix delete forum, fix null pointer exceptions, min max limist
on database strings
This commit is contained in:
@@ -9,13 +9,13 @@ namespace BL.Interfaces
|
||||
{
|
||||
public interface IFoorumService
|
||||
{
|
||||
IEnumerable<FoorumDTO> GetAll();
|
||||
FoorumDTO Get(int id);
|
||||
IEnumerable<FoorumDTO> GetAll(bool withHidden = false, bool withPosts = false);
|
||||
FoorumDTO Get(int id, bool withPosts = true);
|
||||
FoorumDTO Add(FoorumDTO foorum);
|
||||
FoorumDTO Update(FoorumDTO foorum);
|
||||
void Hide(int id, bool hide=true);
|
||||
FoorumDTO Hide(int id, bool hide = true);
|
||||
FoorumDTO Delete(int id);
|
||||
void AddPost(int id, PostDTO post);
|
||||
PostDTO AddPost(int id, PostDTO post);
|
||||
|
||||
IEnumerable<FoorumDTO> SearchFoorumTitle(string query);
|
||||
IEnumerable<FoorumDTO> SearchFoorumAuthor(string query);
|
||||
|
||||
Reference in New Issue
Block a user