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