public JsonResult SelectCouponsInPopup(int animaId) { if (animaId <= 0) { return(Json(new List <CouponsInPopup>(), JsonRequestBehavior.AllowGet)); } else { HomePageConfigManager config = new HomePageConfigManager(); return(Json(config.SelectCouponsOnAnimaId(animaId), JsonRequestBehavior.AllowGet)); } }