public async Task <ActionResult> EditChannelModal(int channelId) { var channelDto = await _channelAppService.Get(new EntityDto <long>(channelId)); var model = new EditChannelModalViewModel { Channel = channelDto }; return(View("_EditChannelModal", model)); }
public async Task <PartialViewResult> CreateOrEditModal(int?id) { ChannelDto dto; if (id.HasValue) { dto = await _channelAppService.Get(new EntityDto(id.Value)); } else { dto = new ChannelDto(); } return(PartialView("_CreateOrEditModal", dto)); }