예제 #1
0
        public ActionResult Create(Colaborador colaborador)
        {
            try
            {
                _repository.Insert(colaborador);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
예제 #2
0
        public ActionResult Edit(Guid id, Colaborador colaborador)
        {
            try
            {
                colaborador.Id = id;
                _repository.Edit(colaborador);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }