forked from slavaxom9k/PIBD-23_Fomichev_V.S._MagicCarpet
21 lines
608 B
C#
21 lines
608 B
C#
using MagicCarpetContracts.DataModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MagicCarpetContracts.StoragesContracts;
|
|
|
|
internal interface IPostStorageContract
|
|
{
|
|
List<PostDataModel> GetList();
|
|
List<PostDataModel> 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);
|
|
}
|