Files
deepdrft/DeepDrftWeb.Services/ITrackService.cs
T

16 lines
568 B
C#

using DeepDrftModels.Entities;
using DeepDrftModels.Models;
using NetBlocks.Models;
namespace DeepDrftWeb.Services;
public interface ITrackService
{
Task<ResultContainer<TrackEntity?>> GetById(long id);
Task<ResultContainer<List<TrackEntity>>> GetAll();
Task<ResultContainer<PagedResult<TrackEntity>>> GetPaged(int pageNumber, int pageSize, string? sortColumn, bool sortDescending);
Task<ResultContainer<TrackEntity>> Create(TrackEntity newTrack);
Task<ResultContainer<TrackEntity>> Update(TrackEntity track);
Task<Result> Delete(long id);
}