Files
PIBD-23_Coursach_YouAreProg…/YouAreProgrammerShop/YAPContracts/AdapterContracts/ICommentAdapter.cs

31 lines
867 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YAPContracts.BindingModels;
using YAPContracts.DataModels;
using YAPContracts.ViewModels;
namespace YAPContracts.AdapterContracts
{
public interface ICommentAdapter
{
List<CommentViewModel>? GetList();
CommentViewModel? GetCommentById(string id);
List<CommentViewModel>? GetCommentsByProductSetAndPeriod(string productSetId, DateTime fromDate, DateTime toDate);
List<CommentViewModel>? GetCommentsByUserAndPeriod(string userId, DateTime fromDate, DateTime toDate);
List<CommentViewModel>? GetCommentsByPeriod(DateTime fromDate, DateTime toDate);
void Create(CommentBindingModel comment);
void Update(CommentBindingModel comment);
void Delete(string id);
}
}