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