Exemple #1
0
        public async Task <ResultEntity> DeleteAsync(int boxId)
        {
            var result = new ResultEntity();
            var box    = await _boxRepository.GetByIdAsync(boxId);

            box.IsDeleted  = true;
            result.Success = true;
            return(result);
        }
Exemple #2
0
        public async Task <BoxEditDto> GetForEditByIdAsync(int id)
        {
            var box = await _boxRepository.GetByIdAsync(id);

            return(Mapper.Map <BoxEditDto>(box));
        }
Exemple #3
0
        public async Task <Box> GetBox(int boxId)
        {
            var box = await _boxRepository.GetByIdAsync(boxId);

            return(box);
        }