Exemple #1
0
        public ResponseDto Delete(ProductCategoryRawListDto deleteDto)
        {
            ResponseDto responseDto = new ResponseDto();

            ProductCategoryListBo deleteBo = new ProductCategoryListBo()
            {
                Id = deleteDto.Id,

                Session = Session
            };

            ResponseBo responseBo = productCategoryBusiness.Delete(deleteBo);

            responseDto = responseBo.ToResponseDto();

            return(responseDto);
        }
Exemple #2
0
        public ResponseDto Save(ProductCategoryRawListDto saveDto)
        {
            ResponseDto responseDto = new ResponseDto();

            ProductCategoryListBo saveBo = new ProductCategoryListBo()
            {
                Id       = saveDto.Id,
                Name     = saveDto.Name,
                ParentId = saveDto.ParentId,

                Session = Session
            };

            ResponseBo responseBo = productCategoryBusiness.Save(saveBo);

            responseDto = responseBo.ToResponseDto();

            return(responseDto);
        }