public async Task <ActionResult <Genre> > GetGenre(int genreId) { try{ return(new OkObjectResult(await _animeService.GetGenre(genreId))); } catch (Exception ex) { return(new StatusCodeResult(500)); } }
public async Task <ActionResult <Genre> > GetGenre(int genreId) { try{ return(new OkObjectResult(await _animeService.GetGenre(genreId))); } catch (Exception ex) { return(new StatusCodeResult(500)); } }