Exemple #1
0
 public Technology AddTechnology(Technology NewTech)
 {
     Context.TechnologyMaster.Add(NewTech);
     Context.SaveChanges();
     return(NewTech);
 }
Exemple #2
0
 public Technology AddTechnology(Technology NewTech)
 {
     NewTech.TechID = _technologies.Max(t => t.TechID) + 1;
     _technologies.Add(NewTech);
     return(NewTech);
 }