Пример #1
0
        public async Task <IActionResult> Create([Bind(properties)] PaymentView c)
        {
            if (!ModelState.IsValid)
            {
                return(View(c));
            }
            c.ID = c.ID ?? Guid.NewGuid().ToString();
            var o = PaymentViewFactory.Create(c);
            await payments.AddObject(o);

            return(RedirectToAction("Index"));
        }