Exemplo n.º 1
0
        public ActionResult ExpertEdit(int id, DomainModels.Expert model)
        {
            var service = new ExpertService();

            service.UpdateExpert(model);
            return(RedirectToAction("GetAllExperts"));
        }
Exemplo n.º 2
0
        public ActionResult ExpertCreate(DomainModels.Expert model)
        {
            var service = new ExpertService();
            var result  = service.CreateExpert(model);

            return(RedirectToAction("GetAllExperts"));
        }