public ActionResult VolunteerDetails(int Id)
        {
            var vol = objVol.getVolunteerById(Id);

            if (vol == null)
            {
                return(View("Error"));
            }
            else
            {
                return(View(vol));
            }
        }
Пример #2
0
        public ActionResult passID(int id)
        {
            var vol = objVol.getVolunteerById(id);

            if (vol == null)
            {
                return(View("NotFound"));
            }
            else
            {
                //passing id to view using tempdata
                TempData["id"] = id;
                return(RedirectToAction("VolunteerInsert"));
            }
        }