Exemplo n.º 1
0
        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));
            }
        }