Ejemplo n.º 1
0
        public ActionResult Detail(Guid id)
        {
            var model = new PriceStrategyComposite();

            model.PriceStrategyDTO = this._IPriceStrategyService.GetByKey(id);
            model.ProductDTOList   = this._IProductService.GetAll();
            return(View(model));
        }
Ejemplo n.º 2
0
 public ActionResult Submit(PriceStrategyComposite composite)
 {
     composite.PriceStrategyDetailDTOList.ForEach(item =>
     {
         item.ModifiedBy  = item.CreatedBy = this.User.Id;
         item.CreatedDate = item.ModifiedDate = DateTime.Now;
     });
     this._IPriceStrategyDetailService.Create(composite.PriceStrategyDetailDTOList);
     return(RedirectToAction("Detail", new { Id = composite.PriceStrategyDTO.Id }));
 }