public FileTypeValidation(FileTypeGroup fileTypeGroup)
 {
     if (fileTypeGroup == FileTypeGroup.Image)
     {
         _validTypes = new string[] { "image/jpeg", "image/png", "image/gif" };
     }
 }
 public FileTypeAttribute(FileTypeGroup fileGroupType)
 {
     if (fileGroupType == FileTypeGroup.Image)
     {
         ValidTypes = new string[] { "image/jpeg", "image/png", "image/gif" };
     }
     else if (fileGroupType == FileTypeGroup.Zip)
     {
         ValidTypes = new string[] { "application/zip", "application/x-zip-compressed" };
     }
 }
 private FileType(int value, String name, FileTypeGroup group)
 {
     this.name = name;
     this.value = value;
 }