public ActionResult Delete(int id) { Domain.Entities.Intervention r = MyService.GetById(id); MyService.Delete(r); MyService.Commit(); return(RedirectToAction("DoctorProfile", "Calender")); }
public ActionResult Create(allahmed inter) { User u = Getcurrentuser(); Domain.Entities.Intervention App = new Domain.Entities.Intervention() { Description = inter.myintervention.Description, idU = u.Id }; MyService.Add(App); MyService.Commit(); return(RedirectToAction("DoctorProfile", "Calender")); }