Example #1
0
        public async Task <IActionResult> GetList(GetCompanysCommand cmd)
        {
            cmd.LoginUser = this.GetCurrentUser();
            cmd.LinkUrl   = $"javascript:getlist(__id__)";
            var result = await _mediator.Send(cmd, HttpContext.RequestAborted);

            return(PartialView(result));
        }
Example #2
0
        public async Task <IActionResult> List(GetCompanysCommand cmd)
        {
            cmd.LoginUser = this.GetCurrentUser();
            cmd.LinkUrl   = $"/user/company/list/?PageIndex=__id__&PageSize={cmd.PageSize}&key={cmd.Key}";
            var result = await _mediator.Send(cmd, HttpContext.RequestAborted);

            return(View(result));
        }