/// <summary> /// Show the Index Page /// </summary> /// <param name="id"></param> /// <returns>View</returns> public ActionResult Index(string id) { AdMonthModel objadmonth = _admonth.GetDetail(id.ToEnctypt()); ViewBag.MonthId = Convert.ToInt32(id.ToDecrypt()); ViewBag.Month = _common.GetMonthList().Where(a => a.Value == (objadmonth.Month).ToString()).Select(a => a.Text).FirstOrDefault(); ViewBag.Year = objadmonth.Year; return(View()); }
public ActionResult Add(string id) { AdMonthModel model = new AdMonthModel(); if (id != null) { model = _AdMonth.GetDetail(id); } ViewBag.CouponList = _Common.GetCouponList(); model.MonthList = _Common.GetMonthList(); model.YearList = _Common.GetYearList(); model.AdOptionList = _Common.GetAdOptionList(); return(View(model)); }