public dtoRequestedFileAssignmentPermission(dtoRequestedFileAssignment file, dtoGenericPermission generic, long count)
     : base(file.Id)
 {
     File               = file;
     Deleted            = file.Deleted;
     AllowDelete        = generic.AllowDelete && Deleted != BaseStatusDeleted.None;
     AllowVirtualDelete = Deleted == BaseStatusDeleted.None && generic.AllowVirtualDelete && !(count > 0);
     AllowUnDelete      = Deleted != BaseStatusDeleted.None && generic.AllowUnDelete;
     AllowEdit          = Deleted == BaseStatusDeleted.None && !(count > 0) && generic.AllowEdit;
     SubmissionCount    = count;
 }
 public dtoRequestedFileAssignmentPermission(long id, dtoRequestedFileAssignment file)
     : base(id)
 {
     File    = file;
     Deleted = file.Deleted;
 }