public IEnumerable <ValidationResult> Validate(ObjectPostModel model) { var t = Helper.GetUIOMaticTypeByAlias(model.TypeAlias, throwNullError: true); Configuration.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new DefaultContractResolver(); return(_service.Validate(t, model.Value)); }
public object Update(ObjectPostModel model) { var t = Helper.GetUIOMaticTypeByAlias(model.TypeAlias, throwNullError: true); return(_service.Update(t, model.Value)); }