public ActionResult Create(People people) { //get the data from the fromcollection and call services layer //save to database try { people.CreatedDate = DateTime.Now; people.UpdatedDate = DateTime.Now; _peopleservice.CreatePeople(people); return(RedirectToAction("Index")); } catch (Exception) { return(View()); } }