public static bool UpdateAward(LotteryAwards awards)
 {
     return LotteryDataAccess.UpdateAward(awards.AwardId, awards.AwardName, awards.Rate.ToString(), awards.TotalCount, awards.SurplusCount);
 }
 public ActionResult Edit(LotteryAwards model)
 {
     if (Session["user"] == null || Session["user"].ToString() != "Authorized")
     {
         return RedirectToAction("Login");
     }
     if (LotteryLogic.UpdateAward(model))
     {
         return RedirectToAction("Detail");
     }
     return View();
 }