AzureCloudServices.Web.Controllers.CustomerController.Create C# (CSharp) Method

Create() private method

private Create ( CustomerFormModel form ) : System.Web.Mvc.ActionResult
form AzureCloudServices.Web.ViewModels.CustomerFormModel
return System.Web.Mvc.ActionResult
        public ActionResult Create(CustomerFormModel form)
        {
            if (ModelState.IsValid)
            {
            //maps to domain object from view model
            var command = Mapper.Map<CustomerFormModel,
            NewCustomerCommand>(form);
            var message = new BrokeredMessage(command);
            // Send customer message to Service Bus Queue
            ServiceBusQueueHelper.CustomersQueueClient.Send(message);
            return RedirectToAction("Index");
            }
            return View(form);
        }

Same methods

CustomerController::Create ( ) : System.Web.Mvc.ViewResult
CustomerController