public ActionResult AddFertilizer(AddFertilizer fertilizerModel) { AgricultureEntities3 dbfertilizer = new AgricultureEntities3(); dbfertilizer.AddFertilizers.Add(fertilizerModel); dbfertilizer.SaveChanges(); TempData["result"] = "Data added Successfully"; return(RedirectToAction("AddFertilizer", "Admin")); }