Esempio n. 1
0
 public List <Product> GetProductsByType(DeliveryType delType)
 {
     return(_unitOfWork.ProductRepository.GetAll().ToList().FindAll(prod => prod.DeliveryType.ID == _deliveryTypeMapper.FromDomainToEntity(delType).ID).Select(prod => _productMapper.FromEntityToDomain(prod)).ToList());
 }
 public void AddDeliveryType(DeliveryType deliveryType)
 {
     _unitOfWork.DeliveryTypeRepository.Add(_deliveryTypeMapper.FromDomainToEntity(deliveryType));
 }