77 lines
3.0 KiB
C#
77 lines
3.0 KiB
C#
//using Microsoft.AspNetCore.Mvc;
|
|
//using Modules.Library.Application.Services.MediaContent;
|
|
|
|
//namespace Modules.Library.WebApi.Controllers;
|
|
|
|
//[ApiController]
|
|
//[Route("[controller]")]
|
|
//public class AnimeSeasonController : ControllerBase
|
|
//{
|
|
// private readonly AnimeSeasonService _animeSeasonService;
|
|
// private readonly ILogger _logger;
|
|
|
|
// public AnimeSeasonController(AnimeSeasonService animeSeasonService, ILogger<AnimeSeasonController> logger)
|
|
// {
|
|
// _animeSeasonService = animeSeasonService;
|
|
// _logger = logger;
|
|
// }
|
|
// /*
|
|
// [HttpGet]
|
|
// public async Task<string> ById(Guid animeTitleId)
|
|
// {
|
|
// return await _animeSeasonService.GetTitle(animeTitleId);
|
|
// }
|
|
// */
|
|
|
|
// [HttpPost("Create")]
|
|
// public async Task<Guid> Create([FromQuery] Guid titleId, [FromQuery] Guid nameOriginalLanguageId, [FromQuery] string nameOriginal)
|
|
// {
|
|
// var seasonId = await _animeSeasonService.Create(titleId, nameOriginal, nameOriginalLanguageId);
|
|
// return seasonId;
|
|
// }
|
|
|
|
// [HttpPost("AddName")]
|
|
// public async Task<Guid> AddName([FromQuery] Guid titleId, [FromQuery] Guid seasonId, Guid languageId, string name, int type)
|
|
// {
|
|
// var newSeasonId = await _animeSeasonService.AddName(titleId, languageId, name, type);
|
|
// return newSeasonId;
|
|
// }
|
|
|
|
// /*
|
|
// [HttpPost("EditName")]
|
|
// public async Task<Guid> EditName([FromQuery] Guid titleId, [FromQuery] Guid seasonId, [FromQuery] int type, [FromQuery] string name, [FromQuery] string newName)
|
|
// {
|
|
// var newSeasonId = await _animeSeasonService.AddSeason(titleId);
|
|
// return newSeasonId;
|
|
// }
|
|
// */
|
|
|
|
// [HttpPost("RemoveName")]
|
|
// public async Task RemoveName([FromQuery] Guid titleId, [FromQuery] Guid seasonId, [FromQuery] int type, [FromQuery] string name)
|
|
// {
|
|
// await _animeSeasonService.RemoveName(titleId); ;
|
|
// }
|
|
// /*
|
|
// [HttpPost("AddDescription")]
|
|
// public async Task<Guid> AddDescription([FromQuery] Guid titleId, [FromQuery] Guid seasonId, [FromQuery] Guid languageId, [FromQuery] string name, [FromQuery] bool isOriginal)
|
|
// {
|
|
// var newSeasonId = await _animeSeasonService.AddName(titleId, languageId, name, type);
|
|
// return newSeasonId;
|
|
// }
|
|
|
|
// [HttpPost("EditDescription")]
|
|
// public async Task<Guid> AddDescription([FromQuery] Guid titleId, [FromQuery] Guid seasonId, [FromQuery] Guid languageId, [FromQuery] string name, [FromQuery] bool isOriginal, [FromQuery] string newName)
|
|
// {
|
|
// var newSeasonId = await _animeSeasonService.AddName(titleId, languageId, name, type);
|
|
// return newSeasonId;
|
|
// }
|
|
|
|
// [HttpPost("RemoveDescription")]
|
|
// public async Task<Guid> RemoveDescription([FromQuery] Guid titleId, [FromQuery] Guid seasonId, [FromQuery] Guid languageId, [FromQuery] string name, [FromQuery] bool isOriginal)
|
|
// {
|
|
// var newSeasonId = await _animeSeasonService.AddName(titleId, languageId, name, type);
|
|
// return newSeasonId;
|
|
// }
|
|
// */
|
|
//}
|