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(); }
public static bool CanEditRemovedComment(this JobQueueJob jqj) { if (!jqj.RemovedDate.HasValue) return false; return jqj.CanEditComments(); }
public static bool CanEditAddedComment(this JobQueueJob jqj) { return jqj.CanEditComments(); }