public IActionResult Update(PersonDTO personDTO) { try { _personApplicationService.Update(PersonAssembler.ToDO(personDTO)); return(Ok()); } catch (Exception e) { Console.WriteLine(e.Message); return(new NotFoundResult()); } }
public IActionResult FindFirstApprover(string applicantId, int leaderMaxLevel) { var person = _personApplicationService.FindFirstApprover(applicantId, leaderMaxLevel); return(Ok(PersonAssembler.ToDTO(person))); }
public IActionResult Get(string personId) { var person = _personApplicationService.FindById(personId); return(Ok(PersonAssembler.ToDTO(person))); }