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

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

            return(RedirectToAction("GetAllExperts"));
        }