21 lines
473 B
C#
21 lines
473 B
C#
using TheCyclopsContracts.DataModels;
|
|
|
|
namespace TheCyclopsContracts.BusinessLogicContracts;
|
|
|
|
public interface IPostBusinessLogicContract
|
|
{
|
|
List<PostDataModel> GetAllPosts(bool onlyActive);
|
|
|
|
List<PostDataModel> GetAllDataOfPost(string postId);
|
|
|
|
PostDataModel GetPostByData(string data);
|
|
|
|
void InsertPost(PostDataModel postDataModel);
|
|
|
|
void UpdatePost(PostDataModel postDataModel);
|
|
|
|
void DeletePost(string id);
|
|
|
|
void RestorePost(string id);
|
|
}
|