public Genero ObterPorId(int id)
 {
     return(_generoService.ObterPorId(id));
 }
예제 #2
0
 public async Task <IActionResult> Detalhes(Guid id)
 {
     return(View(await _generoService.ObterPorId(id)));
 }
예제 #3
0
        public async Task <GeneroViewModel> ObterPorId(Guid id)
        {
            var genero = await _generoService.ObterPorId(id);

            return(_generoServiceMapper.MapToGeneroViewModel(genero));
        }