public async Task <SettlementModel> GetByIdAsync(string settlementId) { Settlement settlement; try { settlement = await _settlementService.GetByIdAsync(settlementId); } catch (EntityNotFoundException) { throw new ValidationApiException(HttpStatusCode.NotFound, "Settlement not found"); } return(Mapper.Map <SettlementModel>(settlement)); }