public SapphirePropertyBuilder(PropertyInfo propertyInfo) { attributesInfo = typeof(TModel).GetPropertyAttributesInfos() .FirstOrDefault(property => property.PropertyInfo == propertyInfo); }
public static bool CanUpdate(this PropertyAttributesInfo pi, HttpInformation httpInformation, object entityObject, IServiceProvider serviceProvider) { return(HandleAuthAttributes(pi.UpdateAuthAttributes, httpInformation, SapphireAuthResource.OperationTypeEnum.Update, entityObject, serviceProvider)); }