public ActionResult Create(Course viewobj) { if (ModelState.IsValid) { dblogic.CreateCourse(viewobj); return(RedirectToAction("Details", new { id = viewobj.Id })); } return(View(viewobj)); }