Esempio n. 1
0
        public IResult AddwithCustomer(ServiceProduct serviceProduct, Customer customer)
        {
            var result = _customerService.AddOutId(customer);

            serviceProduct.CustomerId  = result.Data.Id;
            serviceProduct.SpecialCode = UniqCodeHelper.GenereteUniq();
            _serviceProduct.Add(serviceProduct);
            return(new SuccessResult());
        }
Esempio n. 2
0
 public IResult Add(ServiceProduct serviceProduct)
 {
     serviceProduct.SpecialCode = UniqCodeHelper.GenereteUniq();
     _serviceProduct.Add(serviceProduct);
     return(new SuccessResult());
 }