Beispiel #1
0
 public ActionResult EditQuality()
 {
     if (RouteData.Values["id"] != null)
     {
         int  nid      = 0;
         bool isnumber = int.TryParse(RouteData.Values["id"].ToString(), out nid);
         if (isnumber)
         {
             //ImageHelperNew.DestroyImageCashAndSession(600, 338);
             Quality editQuality = QualityManager.GetQualityById(nid);
             var     languages   = LanguageManager.GetLanguages();
             var     list        = new SelectList(languages, "Culture", "Language");
             ViewBag.LanguageList = list;
             return(View(editQuality));
         }
         else
         {
             return(View());
         }
     }
     else
     {
         return(View());
     }
 }