Пример #1
0
        public ActionResult AddCollage(CollegesViewModel cVM, long Id)
        {
            if (ModelState.IsValid)
            {
                //Person p = Session["Person"] as Person;

                if (hrServices.AddNewPersonCollage(cVM, Id))
                {
                    ViewBag.Message = "Pomyślnie dodano miejsce edukacji";
                    return(RedirectToAction("DisplaySuccessOfAddWorker"));
                }
                else
                {
                    ModelState.AddModelError("", "Nieznany blad");
                    return(View("DisplaySuccessOfAddWorker"));
                }
            }
            else
            {
            }

            return(View());
        }