public JsonResult OpenRequest(int id, bool doEmail) { using (var sRepository = new SpecRequestRepository()) { bool bSuccess = sRepository.ReOpenRequest(id, doEmail); return(Json(new { success = bSuccess }, JsonRequestBehavior.AllowGet)); } }
public JsonResult OpenRequest(int id, bool doEmail) { using (var sRepository = new SpecRequestRepository()) { bool bSuccess = sRepository.ReOpenRequest(id, doEmail); return(Json(new { success = bSuccess }, JsonRequestBehavior.AllowGet)); } }