2025-02-18 11:43:34 +03:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using PapaCarloContracts.BuisinessLogicsContracts;
|
2025-02-17 14:16:47 +03:00
|
|
|
|
using PapaCarloContracts.DataModels;
|
2025-02-18 11:43:34 +03:00
|
|
|
|
using PapaCarloContracts.StoragesContracts;
|
2025-02-17 14:16:47 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace PapaCarloBusinessLogic.Implementations;
|
|
|
|
|
|
2025-02-18 11:43:34 +03:00
|
|
|
|
internal class PostBusinessLogicContract(IPostStorageContract postStorageContract, ILogger logger) : IPostBusinessLogicContract
|
2025-02-17 14:16:47 +03:00
|
|
|
|
{
|
|
|
|
|
public void DeletePost(string id)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<PostDataModel> GetAllDataOfPost(string postId)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<PostDataModel> GetAllPosts(bool onlyActive)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PostDataModel GetPostByData(string data)
|
|
|
|
|
{
|
2025-02-18 08:22:34 +03:00
|
|
|
|
return new("", "", 0, true, DateTime.Now);
|
2025-02-17 14:16:47 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void InsertPost(PostDataModel postDataModel)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RestorePost(string id)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdatePost(PostDataModel postDataModel)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|