BootstrapExtensions.Base.Form.FormExtensions.GenerateId C# (CSharp) Method

GenerateId() private static method

private static GenerateId ( System.Web.Mvc.ViewContext viewContext ) : string
viewContext System.Web.Mvc.ViewContext
return string
        private static string GenerateId(ViewContext viewContext)
        {
            var formCount = ((int?)viewContext.TempData["BootstrapFormCount"] ?? 0) + 1;
            viewContext.TempData["BootstrapFormCount"] = formCount;
            return "bootstrapForm" + formCount;
        }