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); }
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); }