Example #1
0
 public async Task <ActionResult <EmployeeDetailVm> > GetById(Guid id)
 {
     try
     {
         return(await ReturnByOutputAsync(id, (o) => _employeeAppService.GetByIdAsync(o)));
     }
     catch (Exception ex)
     {
         return(BadRequest(LogError(_logger, ex)));
     }
 }