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