public void Test_insert() { //Arrange bool result = false; //Act result = Repository_clienti.Insert(model_client); //Assert Assert.IsTrue(result); }
[HttpPost]//De aici la view-ul administratorului public ActionResult Rezervare(Model_clienti m) { if (Repository_clienti.Insert(m)) { c1.id_confirmare = m.ID; c1.m = m; id = c1.id_confirmare; return(RedirectToAction("Confirmare")); } return(View(m)); }
[HttpPost]//De aici la view-ul administratorului public ActionResult Rezervare(Model_clienti m) { serviciu.Add_client(m); Receive.Program.Main(); if (Repository_clienti.Insert(m)) { c1.id_confirmare = m.ID; c1.m = m; id = c1.id_confirmare; return(RedirectToAction("Confirmare")); } return(View(m)); }
[HttpPost]//De aici la view-ul administratorului public ActionResult Rezervare(Model_clienti m) { Repository_clienti.Insert(m); return(View(m)); }