public async Task <HttpResponseMessage> AddProperty(AddPropertyDto property) { Response <Entities.Entities.Property> httpResponse = new Response <Entities.Entities.Property>(); try { httpResponse.RequestState = true; httpResponse.ErrorState = !await _propertyManager.AddProperty(property.Adapt <Entities.Entities.Property>()); } catch (Exception ex) { httpResponse.ErrorState = true; httpResponse.ErrorList.Add(ex.Adapt <ApiException>()); } return(httpResponse); }