Пример #1
0
        public ActionResult SendMultipleMessagesFromTemplate()
        {
            var template = Lite.Parse <SMSTemplateEntity>(Request["template"]);

            var lites = this.ParseLiteKeys <Entity>();

            var process = OperationLogic.ConstructFromMany(lites, SMSMessageOperation.SendSMSMessagesFromTemplate, template.Retrieve());

            return(this.DefaultConstructResult(process));
        }
Пример #2
0
        public ActionResult CreateOrderFromProducts()
        {
            Lite <CustomerEntity> customer = this.TryParseLite <CustomerEntity>("customer");

            var products = this.ParseLiteKeys <ProductEntity>();

            var order = OperationLogic.ConstructFromMany(products, OrderOperation.CreateOrderFromProducts, customer);

            return(this.DefaultConstructResult(order));
        }
Пример #3
0
        public ActionResult SendMultipleMessages()
        {
            var prefixModel = Request["prefixModel"];

            var model = this.ExtractEntity <MultipleSMSModel>(prefixModel).ApplyChanges(this, prefixModel).Value;

            var lites = this.ParseLiteKeys <Entity>();

            var process = OperationLogic.ConstructFromMany(lites, SMSMessageOperation.SendSMSMessages, model);

            return(this.DefaultConstructResult(process));
        }