public ActionResult ExpertEdit(int id, DomainModels.Expert model) { var service = new ExpertService(); service.UpdateExpert(model); return(RedirectToAction("GetAllExperts")); }
public ActionResult ExpertCreate(DomainModels.Expert model) { var service = new ExpertService(); var result = service.CreateExpert(model); return(RedirectToAction("GetAllExperts")); }