diff --git a/SGGL/BLL/API/APIProjectService.cs b/SGGL/BLL/API/APIProjectService.cs index 73c74f64..1278d21d 100644 --- a/SGGL/BLL/API/APIProjectService.cs +++ b/SGGL/BLL/API/APIProjectService.cs @@ -27,6 +27,7 @@ namespace BLL projects = (from x in db.Project_ProjectUser join y in db.Base_Project on x.ProjectId equals y.ProjectId where x.UserId == userId && (y.ProjectState == null || y.ProjectState == BLL.Const.ProjectState_1) + && (x.IsPost == true || x.IsPost == null) select y).ToList(); } @@ -45,7 +46,7 @@ namespace BLL { var projects = (from x in db.Project_ProjectUser join y in db.Base_Project on x.ProjectId equals y.ProjectId - where x.UserId == userId + where x.UserId == userId && (x.IsPost == true || x.IsPost == null) orderby y.ProjectCode select y).ToList();