public ActionResult db_Read([DataSourceRequest] DataSourceRequest request) { if ((string)Session["UserType"] == "3") { return(Json(ArbitrationService.Read().Where(u => u.ProjectID == int.Parse(Session["Projectid"].ToString()) && u.UserID == int.Parse(Session["UserID"].ToString())).ToDataSourceResult(request))); } else { return(Json(ArbitrationService.Read().Where(u => u.ProjectID == int.Parse(Session["Projectid"].ToString())).ToDataSourceResult(request))); } }
public ActionResult db_Read([DataSourceRequest] DataSourceRequest request) { return(Json(ArbitrationService.Read().ToDataSourceResult(request))); }