Пример #1
0
        public async Task <IResponseOutput> AddGroupAsync(PermissionAddGroupInput input)
        {
            var entity = _mapper.Map <PermissionEntity>(input);
            var id     = (await _permissionRepository.InsertAsync(entity)).Id;

            return(ResponseOutput.Ok(id > 0));
        }
Пример #2
0
        public async Task <IResultModel> AddGroupAsync(PermissionAddGroupInput input)
        {
            var entity = _mapper.Map <PermissionEntity>(input);
            var id     = (await _permissionRepository.InsertAsync(entity));

            return(ResultModel.Result(id > 0));
        }
Пример #3
0
        public async Task <IResponseOutput> AddGroupAsync(PermissionAddGroupInput input)
        {
            var entity = ObjectMapper.Map <PermissionEntity>(input);
            await _permissionRepo.InsertAsync(entity);

            return(ResponseOutput.Ok());
        }
Пример #4
0
 public async Task <IResponseOutput> AddGroup(PermissionAddGroupInput input)
 {
     return(await _permissionServices.AddGroupAsync(input));
 }
Пример #5
0
 public async Task <IResultModel> AddGroup(PermissionAddGroupInput input)
 {
     return(await _permissionServices.AddGroupAsync(input));
 }