public ActionResult Buy(ResourceParam baseParam, long versionId) { if (baseParam.IsCan) { return(Redirect(string.Format("/jump/PreView?packageId={0}&cid={1}&versionId={2}", baseParam.PackageId, baseParam.TaskResultContent.PackageCatalogueId, baseParam.TaskResultContent.ResourceVersionId))); } return(View(baseParam)); }
public ActionResult Buy(ResourceParam baseParam, long versionId) { if (null != baseParam.PackagePermission && baseParam.PackagePermission.ExpirationDate > DateTime.Now) { return(Redirect(string.Format("/jump/PreView?packageId={0}&cid={1}&versionId={2}", baseParam.PackageId, baseParam.TaskResultContent.PackageCatalogueId, baseParam.TaskResultContent.ResourceVersionId))); } return(View(baseParam)); }
// // GET: /Mobile/Home/ public override ActionResult Index(ResourceParam baseParam, long versionId) { return(View(baseParam)); }
public override ActionResult Index(ResourceParam baseParam, long versionId) { return(View(baseParam.PackageType == 3 ? "Index" : "EbookIndex", baseParam)); }