public async Task <bool> CreateEquipmentType(EquipmentTypeCreateRAO rao)
        {
            var entity = _mapper.Map <EquipmentTypeEntity>(rao);

            await _context.EquipmentTypeTableAccess.AddAsync(entity);

            return(await _context.SaveChangesAsync() == 1);
        }
Beispiel #2
0
        public async Task <bool> CreateUserProfile(UserProfileCreateRAO rao)
        {
            var entity = _mapper.Map <UserProfileEntity>(rao);

            await _context.UserProfileTableAccess.AddAsync(entity);

            return(await _context.SaveChangesAsync() == 1);
        }
        public async Task <bool> CreateRequest(RequestCreateRAO rao)
        {
            var entity = _mapper.Map <RequestEntity>(rao);

            await _context.RequestTableAccess.AddAsync(entity);

            return(await _context.SaveChangesAsync() == 1);
        }