コード例 #1
0
 // GET: SK_AREA/Shipping
 public ActionResult Index(int?page)
 {
     if (HttpContext.Request.Cookies["IsLogin"].Value == "Admin")
     {
         TempData["Page555+"] = page;
         return(View(repository.GetAll().ToList().ToPagedList(page ?? 1, 3)));
     }
     else
     {
         RedirectToAction("PermissionError", "ProductMaintain");
     }
     return(View());
 }
コード例 #2
0
 public IHttpActionResult Get()
 {
     return(Ok(sRepo.GetAll()));
 }
コード例 #3
0
 public IHttpActionResult TotalOrders()
 {
     return(Ok(sRepo.GetAll()));
 }