// GET api/noticeboardplain public SocialNoticeBoard.Domain.DTO.dtoNoticeBoardPlainListResponse Get( [FromUri] DateTime referenceDateTime ) { // , //[FromUri]string token, //[FromUri]string deviceId = "" // Blocco da rendere "generico" su TUTTE le chiamate, esclusa login!!! SocialNoticeBoard.Domain.DTO.dtoNoticeBoardPlainListResponse response = new dtoNoticeBoardPlainListResponse(); response.ErrorInfo = base.LastError; dtoMessageListPlain list = Service.MessageGetListPlain_Update(base.UserContext.CurrentCommunityID, referenceDateTime); response.Messages = list.Messages; response.ReferenceDateTime = list.ReferenceDateTime; //.(communityId); response.Success = true; response.ErrorInfo = GenericError.None; //ActionFilters CheckResponse(response); return(response); }
// GET api/noticeboard public SocialNoticeBoard.Domain.DTO.dtoNoticeBoardPlainListResponse Get( [FromUri] DateTime referenceDateTime ) { // Blocco da rendere "generico" su TUTTE le chiamate, esclusa login!!! dtoSocialDashboardPermissionResponse dpr = (dtoSocialDashboardPermissionResponse)CoreService.PermissionGet( COL_BusinessLogic_v2.UCServices.Services_SocialNoticeboard.Codex, UserContext.CurrentUserID, UserContext.CurrentCommunityID); dtoNoticeBoardPlainListResponse response = new dtoNoticeBoardPlainListResponse(); response.ErrorInfo = base.LastError; if (!dpr.Admin && !dpr.View) { response.Success = false; response.ErrorInfo = GenericError.NoServicePermission; } dtoMessageListPlain list = Service.MessageGetListPlain_Update(base.UserContext.CurrentCommunityID, referenceDateTime); response.Messages = list.Messages; response.ReferenceDateTime = list.ReferenceDateTime; //.(communityId); response.Success = true; response.ErrorInfo = GenericError.None; //ActionFilters CheckResponse(response); return(response); }
// GET api/noticeboardplain public SocialNoticeBoard.Domain.DTO.dtoNoticeBoardPlainListResponse Get( [FromUri] Int32 communityId) { SocialNoticeBoard.Domain.DTO.dtoNoticeBoardPlainListResponse response = new dtoNoticeBoardPlainListResponse(); response.ErrorInfo = base.LastError; dtoMessageListPlain list = Service.MessageGetListPlain_Full(communityId); response.Messages = list.Messages; response.ReferenceDateTime = list.ReferenceDateTime; response.Success = true; response.ErrorInfo = GenericError.None; //ActionFilters CheckResponse(response); return(response); }