2017-06-12 13:37:48 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using BL.DTOs;
|
|
|
|
|
|
|
|
|
|
namespace BL.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IFoorumService
|
|
|
|
|
{
|
2017-06-12 17:22:58 +03:00
|
|
|
|
IEnumerable<FoorumDTO> GetAll(bool withHidden = false, bool withPosts = false);
|
|
|
|
|
FoorumDTO Get(int id, bool withPosts = true);
|
2017-06-12 14:16:38 +03:00
|
|
|
|
FoorumDTO Add(FoorumDTO foorum);
|
2017-06-12 15:46:53 +03:00
|
|
|
|
FoorumDTO Update(FoorumDTO foorum);
|
2017-06-12 17:22:58 +03:00
|
|
|
|
FoorumDTO Hide(int id, bool hide = true);
|
2017-06-12 16:23:33 +03:00
|
|
|
|
FoorumDTO Delete(int id);
|
2017-06-12 17:22:58 +03:00
|
|
|
|
PostDTO AddPost(int id, PostDTO post);
|
2017-06-12 13:37:48 +03:00
|
|
|
|
|
|
|
|
|
IEnumerable<FoorumDTO> SearchFoorumTitle(string query);
|
|
|
|
|
IEnumerable<FoorumDTO> SearchFoorumAuthor(string query);
|
|
|
|
|
IEnumerable<PostDTO> SearchPostAuthor(string query);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|