[HttpPost] //getting info from a page public ActionResult Create(DeveloperPosition developerPosition) //to fill in the details { if (!ModelState.IsValid) { return(View(developerPosition));//stay on the current page } else { context.Insert(developerPosition); //add developer position to cache memory context.Commit(); //refresh cache memory return(RedirectToAction("Index")); //redirect to Index page, to view the updated list } }