public void ActionAdd(ModOrderModel model)
        {
            if (model.RecordID > 0)
            {
                entity = ModOrderService.Instance.GetByID(model.RecordID);

                // khoi tao gia tri mac dinh khi update
            }
            else
            {
                entity = new ModOrderEntity();

                // khoi tao gia tri mac dinh khi insert
            }

            ViewBag.Data = entity;
            ViewBag.Model = model;
        }
Exemple #2
0
        public void ActionAdd(ModOrderModel model)
        {
            if (model.RecordID > 0)
            {
                entity = ModOrderService.Instance.GetByID(model.RecordID);

                // khoi tao gia tri mac dinh khi update
            }
            else
            {
                entity = new ModOrderEntity();

                // khoi tao gia tri mac dinh khi insert
            }

            ViewBag.Data  = entity;
            ViewBag.Model = model;
        }