Esempio n. 1
0
 public async Task <ActionResult <EmployeeDetailVm> > GetByUserId(Guid id)
 {
     try
     {
         return(await ReturnByOutputAsync(id, (o) => _employeeAppService.GetByUserIdAsync(o)));
     }
     catch (Exception ex)
     {
         return(BadRequest(LogError(_logger, ex)));
     }
 }