Exemplo n.º 1
0
        public static void OnEditComments(this UserFlagAssignment fa, string Comments)
        {
            if (!fa.CanEditComments())
                throw new InvalidOperationException("Editing comments for user flags is denied");

            fa.Comments = string.IsNullOrWhiteSpace(Comments) ? null : Comments.Trim();
        }
Exemplo n.º 2
0
        public static bool CanEditRemovedComment(this JobQueueJob jqj)
        {
            if (!jqj.RemovedDate.HasValue)
                return false;

            return jqj.CanEditComments();
        }
Exemplo n.º 3
0
 public static bool CanEditAddedComment(this JobQueueJob jqj)
 {
     return jqj.CanEditComments();
 }