public ActionResult CreateUrl(Urllist urllists) { if (ModelState.IsValid) { Accountdb.urllists.Add(urllists); Accountdb.SaveChanges(); return(RedirectToAction("CreateUrl")); } ViewData["WebSiteID"] = new SelectList(Accountdb.weblist, "ID", "Website", urllists.WebSiteUrl); return(View(urllists)); }
public static string GetUrl(Urllist types) { return(RailsSurveyorUI.url[(int)types]); }