forked from slavaxom9k/PIBD-23_Fomichev_V.S._MagicCarpet
26 lines
591 B
C#
26 lines
591 B
C#
using MagicCarpetContracts.DataModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MagicCarpetContracts.BuisnessLogicContracts;
|
|
|
|
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);
|
|
}
|