public async Task <IActionResult> GetByPersonId([Required] string personId) { try { var personDO = _personApplicationService.GetById(personId); var personVO = Mapper.Map <PersonVO>(personDO); return(Ok(new { data = personVO })); } catch (Exception ex) { _logger.LogError(ex, "Get Person by ID Error!"); return(BadRequest(new { message = ErrorMessage })); } }