public async Task <IActionResult> Get(int Id)
 {
     try
     {
         return(Ok(_mapper.Map <ClientesModel, ClientesViewModel>(await _context.GetByIDAsync(Id))));
     }catch (Exception e)
     {
         return(Ok(e.Message));
     }
 }
Esempio n. 2
0
 public async Task <IActionResult> Get(Guid Id)
 {
     return(await _context.GetByIDAsync(Id));
 }