21 lines
584 B
C#
21 lines
584 B
C#
|
using PapaCarloContracts.DataModels;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace PapaCarloContracts.BuisinessLogicsContracts;
|
|||
|
|
|||
|
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);
|
|||
|
}
|
|||
|
|