Beispiel #1
0
 public JsonResult LoadUnit(int ItemId)
 {
     if (Session["strUserId"] == null)
     {
         return(Json(new
         {
             redirectUrl = Url.Action("Login", "Account"),
             isRedirect = true
         }));
     }
     else
     {
         var data = ItemServices.GetUnit(ItemId);
         return(Json(data, JsonRequestBehavior.AllowGet));
     }
 }