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