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)); }
public virtual async Task <RouteGroupDto> CreateAsync(RouteGroupCreateDto input) { return(await RouterAppService.CreateAsync(input)); }