roadie/Roadie.Api.Services/IGenreService.cs

22 lines
828 B
C#
Raw Normal View History

2019-08-02 20:59:24 +00:00
using Microsoft.AspNetCore.Http;
using Roadie.Library;
using Roadie.Library.Identity;
using Roadie.Library.Models;
2018-11-15 04:25:40 +00:00
using Roadie.Library.Models.Pagination;
using Roadie.Library.Models.Users;
2019-08-02 20:59:24 +00:00
using System;
using System.Collections.Generic;
2018-11-16 03:37:00 +00:00
using System.Threading.Tasks;
2018-11-15 04:25:40 +00:00
namespace Roadie.Api.Services
{
public interface IGenreService
{
2019-08-02 20:59:24 +00:00
Task<OperationResult<Genre>> ById(User roadieUser, Guid id, IEnumerable<string> includes = null);
Task<OperationResult<bool>> Delete(ApplicationUser user, Guid id);
Task<PagedResult<GenreList>> List(User roadieUser, PagedRequest request, bool? doRandomize = false);
2019-08-02 20:59:24 +00:00
Task<OperationResult<Image>> SetGenreImageByUrl(User user, Guid id, string imageUrl);
Task<OperationResult<Image>> UploadGenreImage(User user, Guid id, IFormFile file);
2018-11-15 04:25:40 +00:00
}
}