public ActionResult StaionDetails(StationlistModel tsdm) { tblStationDetail station = tsdm.tblstation; int i = Btrain.AddStation(station); if (i > 0) { ViewBag.status = "Station Details Added sussfully"; } else { ViewBag.status = "Failed to Add station."; } tsdm.tblstationslist = repositery.getStations().ToList(); return(View(tsdm)); }