public ActionResult EditProject(int?id) { var repo = new MainRepository(); var Main = repo.EditProjView(id); Session["projId"] = id; return(View(Main)); }