20 lines
452 B
C#
20 lines
452 B
C#
using NorthBridgeContract.DataModels;
|
|
|
|
namespace NorthBridgeContract.BusinessLogicsContracts;
|
|
|
|
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);
|
|
} |