[HttpPost] public async Task <IActionResult> Create( [Bind(checkProperties)] CheckView c) { if (!ModelState.IsValid) { return(View(c)); } c.ID = c.ID ?? Guid.NewGuid().ToString(); var o = PaymentMethodViewFactory.Create(c); await paymentMethods.AddObject(o); return(RedirectToAction("Index")); }