Exemple #1
0
 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));
 }
Exemple #2
0
 public static string GetUrl(Urllist types)
 {
     return(RailsSurveyorUI.url[(int)types]);
 }