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());
        }
Beispiel #2
0
 public void Commit()
 {
     context.SaveChanges();
 }