Ejemplo n.º 1
0
        public async Task <HttpResponseMessage> AddPropertyValues(List <AddPropertyValuesDto> values)
        {
            Response <Entities.Entities.Property> httpResponse = new Response <Entities.Entities.Property>();

            try
            {
                httpResponse.RequestState = true;
                httpResponse.ErrorState   = !await _propertyManager.AddPropertyValues(values.Adapt <List <PropertyDetail> >());
            }
            catch (Exception ex)
            {
                httpResponse.ErrorState = true;
                httpResponse.ErrorList.Add(ex.Adapt <ApiException>());
            }
            return(httpResponse);
        }