44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.Logging;
|
|
using PuferFishContracts.BusinessLogicsContracts;
|
|
using PuferFishContracts.DataModels;
|
|
using PuferFishContracts.Enums;
|
|
using PuferFishContracts.StoragesContracts;
|
|
|
|
namespace PuferFishBusinessLogic.Implementations;
|
|
|
|
internal class PostBusinessLogicContract(IPostStorageContract postStorageContract, ILogger logger) : IPostBusinessLogicContract
|
|
{
|
|
private readonly ILogger _logger = logger;
|
|
private readonly IPostStorageContract _postStorageContract =
|
|
postStorageContract;
|
|
public List<PostDataModel> GetAllPosts(bool onlyActive = true)
|
|
{
|
|
return [];
|
|
}
|
|
public List<PostDataModel> GetAllDataOfPost(string postId)
|
|
{
|
|
return [];
|
|
}
|
|
public PostDataModel GetPostByData(string data)
|
|
{
|
|
return new("", "", PostType.None, true, DateTime.UtcNow);
|
|
}
|
|
public void InsertPost(PostDataModel postDataModel)
|
|
{
|
|
}
|
|
public void UpdatePost(PostDataModel postDataModel)
|
|
{
|
|
}
|
|
public void DeletePost(string id)
|
|
{
|
|
}
|
|
public void RestorePost(string id)
|
|
{
|
|
}
|
|
}
|