public Issue ConvertFromEntity(Issues Entity) { IssueId = Entity.IssueId; Subject = Entity.Subject; Description = Entity.Description; return this; }
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; } }