public ActionResult Create(collaborateur collab) { //try //{ // // TODO: Add insert logic here // using (SMSIEntities1 db = new SMSIEntities1()) // { // db.collaborateur.Add(collab); // db.SaveChanges(); // } // return RedirectToAction("Index"); //} //catch //{ return(View()); //} }
public ActionResult Edit(int id, collaborateur collab) { //try //{ // // TODO: Add update logic here // using (SMSIEntities1 db = new SMSIEntities1()) // { // db.Entry(collab).State = EntityState.Modified; // db.SaveChanges(); // } // return RedirectToAction("Index"); //} //catch //{ return(View()); //} }