public void Delete(DeliveryGroup deliveryGroup) { DeleteValidate(deliveryGroup); _deliveryGroupRepository.Delete(deliveryGroup); _unitOfWork.Commit(); }
public bool Delete(int id) { _deliveryGroupRepository.Delete(_deliveryGroupRepository.FindById(a => a.Id == id)); return(_deliveryGroupRepository.Save() > 0); }