コード例 #1
0
        public ActionResult Save(SaleOrder model)
        {
            try
            {
                if (model.Id == Guid.Empty)
                {
                    model.CreatedById = base.CurrentUser.Id;
                }

                SaleOrderService.SaveOrUpdate(model);
                return(new BetterJsonResult());
            }
            catch (Exception ex)
            {
                return(new BetterJsonResult(ex.Message));
            }
        }