コード例 #1
0
        public async Task <ResponseViewModel <BannerListView> > AcquireBanner([FromBody] RequestViewModel obj)
        {
            BannerListView result = new BannerListView();

            obj = JsonHelper.DeserializeJsonToObject <RequestViewModel>(Content(User.Identity.Name).Content);
            ResponseViewModel <BannerListView> response = null;

            (result.Staple, result.Subsidiary) = await _routine.GetBannerListAsync();

            response = new ResponseViewModel <BannerListView>(SysCode.Ok, result, obj.Encrypt, _sys, obj.Secret);
            return(response);
        }