28 lines
644 B
C#
28 lines
644 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TwoFromTheCasketContratcs.DataModels;
|
|
|
|
namespace TwoFromTheCasketContratcs.StorageContracts;
|
|
|
|
public interface IPostStorageContract
|
|
{
|
|
List<PostDataModel> GetList(bool onlyActual = true);
|
|
|
|
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);
|
|
}
|