using MagicCarpetContracts.DataModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MagicCarpetContracts.StoragesContracts; public interface IPostStorageContract { List GetList(bool onlyActual = true); List GetPostWithHistory(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); }