Example #1
0
        public async Task <IActionResult> DeleteAsync(BaseQueryInputDto input)
        {
            await configHelper.RemoveClientAsync(input.Id);

            return(Json(new ResultDto {
                Success = true
            }));
        }
Example #2
0
        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 }));
        }
Example #3
0
 public IActionResult AddChannel(BaseQueryInputDto input)
 {
     return(View("addchannel", new { input.Id }));
 }