public string GetAddressByAddress(string addressID) { try { CustomerAddressViewModel address = null; if (!string.IsNullOrEmpty(addressID)) { OperationsStatusViewModel operationsStatus = new OperationsStatusViewModel(); address = Mapper.Map <CustomerAddress, CustomerAddressViewModel>(_customerBusiness.GetAddressByAddress(int.Parse(addressID))); } return(JsonConvert.SerializeObject(new { Result = "OK", Record = address })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { Result = "ERROR", Message = ex.Message })); } }