/// <summary> /// Create a single License /// </summary> /// <returns>Create License view</returns> public ActionResult Create() { using (var context = dataContextFactory.CreateByUser()) { var skuQuery = from x in context.SKUs select x; var customerQuery = from x in context.Customers select x; LicenseCreateViewModel viewModel = new LicenseCreateViewModel(skuQuery.ToList(), customerQuery.ToList()); viewModel.UseLocalReferrerAsRedirectUrl(Request); return(View(viewModel)); } }