Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public UoWData()
 {
     context       = new CentisoftContext();
     CustomerRepo  = new GenericRepo <Customer>(context);
     DeveloperRepo = new GenericRepo <Developer>(context);
 }