Ejemplo n.º 1
0
        virtual public CommonResponse SetProperty(string sProperty, string newValue, [FromBody] string value)
        {
            CommonResponse response = new CommonResponse();

            Entity entity;

            try
            {
                entity = JsonConvert.DeserializeObject <Entity>(value);
                return(_logic.SetPropertyValue(entity, sProperty, newValue));
            }
            catch (Exception e)
            {
                return(response.Error("ERROR: " + e.ToString()));
            }
        }