Example #1
0
        public async Task <Permission> AddAsync(Permission entity)
        {
            var model = Mapper.Map <PermissionModel>(entity);
            await _dbContext.AddAsync(model);

            return(Mapper.Map <Permission>(model));
        }
Example #2
0
        public async Task <Account> AddAsync(Account entity)
        {
            var model = Mapper.Map <AccountModel>(entity);
            await _dbContext.AddAsync(model);

            return(Mapper.Map <Account>(model));
        }
Example #3
0
        public async Task <Logging> AddAsync(Logging entity)
        {
            var model = Mapper.Map <Model.LogInfoModel>(entity);
            await _dbContext.AddAsync(model);

            return(Mapper.Map <Logging>(model));
        }
Example #4
0
        public async Task <Role> AddAsync(Role entity)
        {
            var model = Mapper.Map <RoleModel>(entity);
            await _dbContext.AddAsync(model);

            return(Mapper.Map <Role>(model));
        }