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); }
public async Task <BoxEditDto> GetForEditByIdAsync(int id) { var box = await _boxRepository.GetByIdAsync(id); return(Mapper.Map <BoxEditDto>(box)); }
public async Task <Box> GetBox(int boxId) { var box = await _boxRepository.GetByIdAsync(boxId); return(box); }