public async Task <ActionResult> Create(int id = 0) { var model = new GetBannerForEditOutput(); if (id > 0) { model = await bannerservice.GetBannerForEditAsync(new NullableIdDto <long> { Id = id }); } return(View(model.BannerEditDto)); }
public async Task <ActionResult> Create(int id = 0) { var model = new GetBannerForEditOutput(); if (id > 0) { model = await bannerservice.GetBannerForEditAsync(new NullableIdDto <long> { Id = id }); } return(View(model.BannerEditDto)); }