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