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()); }
public async Task <IActionResult> Update(Guid Id) { var data = await ApiMessage.WrapData(async() => { return(await bannersBusienss.GetOne(Id)); }); return(View(data)); }