Example #1
0
		public static RestMethod GetRestMethod(RestAttribute attribute, Type operationType)
		{
			var verb = RestBuilder.Methods[attribute.Verb];
			verb.AllowAnonymous = attribute.AllowAnonymous;
			verb.Roles = attribute.Roles;

			Operation.DiscoverTypes(operationType, verb);
			
			return verb;
		}
 public void UpdateAttributeData(RestAttribute data)
 {
     Operator      = data.Operator;
     UseNot        = data.UseNot;
     CaseSensitive = data.CaseSensitive;
     FieldName     = data.HasName;
     if (!string.IsNullOrEmpty(FieldName))
     {
         _customName = true;
     }
 }