23 lines
490 B
C#
23 lines
490 B
C#
using IcecreamVan.DataModels;
|
|
|
|
namespace IcecreamVan.StoragesContracts;
|
|
|
|
public interface IPostContract
|
|
{
|
|
List<PostDataModel> GetList(bool onlyActual = true);
|
|
|
|
List<PostDataModel> GetPostHistory(string postId);
|
|
|
|
PostDataModel? GetElementById(string id);
|
|
|
|
PostDataModel? GetElementByName(string name);
|
|
|
|
void AddElement(PostDataModel postDataModel);
|
|
|
|
void UpdElement(PostDataModel postDataModel);
|
|
|
|
void DelElement(string id);
|
|
|
|
void ResElement(string id);
|
|
}
|