Esempio n. 1
0
 public ActionResult Packages(string id)
 {
     Models.PackageModel v = new Models.PackageModel();
     if (id != null)
     {
         int days = Convert.ToInt32(id);
         v.Voli = PackageHelper.GetAllPackage().Where(x => x.Days <= days).OrderBy(X => X.PackagePrice).ToList();
     }
     else
     {
         v.Voli = PackageHelper.GetAllPackage().OrderBy(X => X.PackagePrice).ToList();
     }
     return(View(v));
 }