Ejemplo n.º 1
0
        public ActionResult SetSplitRebatesForUser(SplitRebatesConfiguration relation)
        {
            relation.DateTill = null;

            try
            {
                this.ExecuteInDBTransaction((dl) =>
                {
                    dl.IBDL.setSplitRebatesForUser(relation);
                    this.Logger.InfoFormat("User {0} saved rebate type2 configuration. Relation={1}", this.CurrentUserName, JsonSerializer.Serialize(relation));
                });

                return(new JsonNetResult()
                {
                    Data = 0, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet
                });
            }
            catch (Exception e)
            {
                return(new JsonNetResult()
                {
                    Data = e.Message, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet
                });
            }
        }
        public ActionResult SetSplitRebatesForUser(SplitRebatesConfiguration relation)
        {
            relation.DateTill = null;

            try
            {
                this.ExecuteInDBTransaction((dl) =>
                {
                    dl.IBDL.setSplitRebatesForUser(relation);
                    this.Logger.InfoFormat("User {0} saved rebate type2 configuration. Relation={1}", this.CurrentUserName, JsonSerializer.Serialize(relation));
                });

                return new JsonNetResult() { Data = 0, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet };
            }
            catch (Exception e)
            {
                return new JsonNetResult() { Data = e.Message, JsonRequestBehavior = System.Web.Mvc.JsonRequestBehavior.AllowGet };
            }
        }