public ActionResult Index() { CentisoftContext context = new CentisoftContext(); // Create a new developer Developer developer = new Developer(); developer.Name = "Testerman"; developer.Email = "*****@*****.**"; context.Developers.Add(developer); context.SaveChanges(); return(View()); }
public UoWData() { context = new CentisoftContext(); CustomerRepo = new GenericRepo <Customer>(context); DeveloperRepo = new GenericRepo <Developer>(context); }