Exemplo n.º 1
0
        public ActionResult AssignTool(JobTool jw)
        {
            JobManager JM = new JobManager();

            if (ModelState.IsValid)
            {
                JM.AddJobTool(jw);
                return(null); //RedirectToAction("Welcome", "Home");
            }
            else
            {
                ModelState.AddModelError("", "The password provided is incorrect.");
            }

            return(View());
        }