public ActionResult AddTraning(TraningsViewModel tVM, long Id) { if (ModelState.IsValid) { if (hrServices.AddNewPersonTrainings(tVM, Id)) { ViewBag.Message = "Pomyślnie dodano szkolenie/certyfkiacje"; return(RedirectToAction("DisplaySuccessOfAddWorker")); } else { ModelState.AddModelError("", "Nieznany blad"); return(View("DisplaySuccessOfAddWorker")); } } else { } return(View()); }