示例#1
0
        public virtual async Task <RouteGroupDto> CreateAsync(RouteGroupCreateDto routerCreateDto)
        {
            var router = new RouteGroup(routerCreateDto.AppId, routerCreateDto.AppName, routerCreateDto.AppIpAddress);

            router.Name        = routerCreateDto.Name;
            router.IsActive    = routerCreateDto.IsActive;
            router.Description = routerCreateDto.Description;

            router = await RouterRepository.InsertAsync(router, true);

            return(ObjectMapper.Map <RouteGroup, RouteGroupDto>(router));
        }
示例#2
0
 public virtual async Task <RouteGroupDto> CreateAsync(RouteGroupCreateDto input)
 {
     return(await RouterAppService.CreateAsync(input));
 }