예제 #1
0
        public async Task <IActionResult> AddFavorite(int id, [FromQuery] int paper)
        {
            var result = await _service.AddFavorite(id, paper);

            if (result)
            {
                return(NoContent());
            }
            else
            {
                return(BadRequest("No such user"));
            }
        }