public async Task <IActionResult> DeleteAsync(BaseQueryInputDto input) { await configHelper.RemoveClientAsync(input.Id); return(Json(new ResultDto { Success = true })); }
public async Task <IActionResult> DetailAsync(BaseQueryInputDto input) { var channels = (await configHelper.GetChannelsAsync(input.Id)).Select(x => new { x.ChannelId, x.ClientId, x.BackendPort, x.FrontendIp, x.FrontendPort, x.Name }).ToList(); return(View("detail", new { channels, input.Id })); }
public IActionResult AddChannel(BaseQueryInputDto input) { return(View("addchannel", new { input.Id })); }