Esempio n. 1
0
        public async Task <IActionResult> GoMsg(int p = 0, int prePageCount = 6)
        {
            //暂时一条消息只能一次
            var user = await _userManager.GetUserAsync(User);

            var res = await _msgRespository.GetMsgAsync(user, p *prePageCount, prePageCount);

            return(View("Msg", res));
        }
Esempio n. 2
0
        public async Task <IActionResult> GetMsg([FromForm] int s, [FromForm] int t)
        {
            var res = await _msgRepository.GetMsgAsync(this.GetAuthorization(), s, t);

            return(Json(res));
        }