public ActionResult AssignBlock(JobBlock jb) { //JobWorker jwork = new JobWorker //{ // JobId = "asdf", // WorkerId = "fdaf" //}; // JobManager...; JobManager JM = new JobManager(); if (ModelState.IsValid) { JM.AddJobBlock(jb); return(null);//RedirectToAction("Welcome", "Home"); } else { ModelState.AddModelError("", "The password provided is incorrect."); } return(View()); }