Example #1
0
        /*** INSTANCE METHODS  ***/

        public bool Save()
        {
            DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer();
            int TempId = DBLayer.CreateNewIssueComment(this);

            if (TempId > 0)
            {
                _Id = TempId;
                IssueNotification.SendIssueNotifications(IssueId);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
        /*** INSTANCE METHODS ***/



        public bool Save()
        {
            DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer();

            if (Id <= DefaultValues.GetIssueIdMinValue())
            {
                int TempId = DBLayer.CreateNewIssue(this);
                if (TempId > 0)
                {
                    _Id = TempId;
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                bool result = DBLayer.UpdateIssue(this);
                IssueNotification.SendIssueNotifications(Id);
                return(result);
            }
        }
Example #3
0
 public bool Contains(IssueNotification value)
 {
     // If value is not of type Comment, this will return false.
     return(List.Contains(value));
 }
Example #4
0
 public void Remove(IssueNotification value)
 {
     List.Remove(value);
 }
Example #5
0
 public void Insert(int index, IssueNotification value)
 {
     List.Insert(index, value);
 }
Example #6
0
 public int IndexOf(IssueNotification value)
 {
     return(List.IndexOf(value));
 }
Example #7
0
 public int Add(IssueNotification value)
 {
     return(List.Add(value));
 }