public ActionResult PublicFiles(List <int> listSubmiss) { var model = new SUBMITTION(); int resCode = 0; foreach (var item in listSubmiss) { model.Sub_ID = item; model.IsPublic = 1; try { var resDB = dataAccess.EditPublicStatus(model); resCode = 1; } catch (Exception e) { resCode = -1; return(Json(resCode, JsonRequestBehavior.AllowGet)); } } return(Json(resCode, JsonRequestBehavior.AllowGet)); }