Exemple #1
0
 public ActionResult AddWorkerAdditionalInfoSend(AdditionalInformationViewModel vm)
 {
     if (ModelState.IsValid)
     {
         Person p = Session["Person"] as Person;
         AdditionalInformation ai = hrServices.CreateAdditionalInfo(vm, p);
         if (ai != null)
         {
             return(RedirectToAction("AddEmploymentInformation"));
         }
         else
         {
             ModelState.AddModelError("", "Uzytkownik nie zostal dodany. Prosze powtorz dodanie uzytkownika");
             return(View(vm));
         }
     }
     else
     {
         return(View(vm));
     }
 }