public JsonResult GetProjectInfo(int id) { using (var sRepo = new SpecRequestRepository()) { return(Json(sRepo.GetProject(id), JsonRequestBehavior.AllowGet)); } }
public ActionResult Edit(int id) { using (var sRepository = new SpecRequestRepository()) { ViewBag.BlankInformation = sRepository.GetProjectSeriesInformation(); return(View(sRepository.GetProject(id))); } }