Exemple #1
0
        public Issue ConvertFromEntity(Issues Entity)
        {
            IssueId = Entity.IssueId;
            Subject = Entity.Subject;
            Description = Entity.Description;

            return this;
        }
Exemple #2
0
        private void SaveNew()
        {
            using (ItsEntities Context = new ItsEntities())
            {
                Issues DBIssue = new Issues()
                {
                    Subject = Subject,
                    Description = Description
                };

                Context.Issues.Add(DBIssue);

                Context.SaveChanges();
                IssueId = DBIssue.IssueId;
            }
        }