Esempio n. 1
0
 public void AddIssue(Issues issue)
 {
     using (LearnContext lc = new LearnContext())
     {
         lc.Issues.Add(issue);
         lc.SaveChanges();
     }
 }
Esempio n. 2
0
 public void DeleteIssue(int Id)
 {
     using (LearnContext lc = new LearnContext())
     {
         Issues issues = lc.Issues.Find(Id);
         lc.Issues.Remove(issues);
         lc.SaveChanges();
     }
 }