Пример #1
0
        public ActionResult EditCandidate(string id)
        {
            if (!user.IsManager())
            {
                return(View("Error"));
            }
            int id_cand = Convert.ToInt32(id);

            try
            {
                Candidate cand = managerDal.GetCandidate(id_cand);
                return(View(cand));
            }
            catch (Exception)
            {
                return(View("Error"));
            }
        }