public ActionResult ContactPersonSave(ContactPersonViewModel cpVM) { if (ModelState.IsValid) { Person p = Session["Person"] as Person; ContactPerson cp = hrServices.CreateContactPerson(cpVM, p); if (cp != null) { return(RedirectToAction("DisplaySuccessOfAddWorker")); } else { ModelState.AddModelError("", "Nieznany blad"); return(View("AddEmploymentInformation", cpVM)); } } else { return(View("AddEmploymentInformation", cpVM)); } }