Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 //
 // GET: /Mobile/Home/
 public override ActionResult Index(ResourceParam baseParam, long versionId)
 {
     return(View(baseParam));
 }
Esempio n. 4
0
 public override ActionResult Index(ResourceParam baseParam, long versionId)
 {
     return(View(baseParam.PackageType == 3 ? "Index" : "EbookIndex", baseParam));
 }