示例#1
0
        public async Task <IActionResult> AddOrUpdate(Guid?Id)
        {
            ViewData["DataType"] = typeof(Banners);
            if (Id != null)
            {
                var contentEntry = await bannersBusienss.GetOne(Id.Value);

                ViewData["DataModel"] = contentEntry;
            }

            return(View());
        }
示例#2
0
        public async Task <IActionResult> Update(Guid Id)
        {
            var data = await ApiMessage.WrapData(async() =>
            {
                return(await bannersBusienss.GetOne(Id));
            });

            return(View(data));
        }