public async Task <IHttpActionResult> Get(int customerInfoId) { try { var result = await _repo.GetAddressInfoById(customerInfoId); var mapped = _mapper.Map <AddressInfoModel>(result); return(Ok(mapped)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }