public JsonResult LoadTransferType() { if (Session["strUserId"] == null) { return(Json(new { redirectUrl = Url.Action("Login", "Account"), isRedirect = true })); } else { var data = TransferTypeServices.GetAll(); return(Json(data, JsonRequestBehavior.AllowGet)); } }
public void LoadAll(string strStoreId) { var StoreList = TransferService.GETALLBRANCHSTORE(strStoreId); ViewBag.StoreList = new SelectList(StoreList, "SID", "Name"); var ItemList = ItemServices.GetDropDown(); ViewBag.ItemList = new SelectList(ItemList, "ItemId", "ItemName"); var TransferTypeList = TransferTypeServices.GetAll(); ViewBag.TransferTypeList = new SelectList(TransferTypeList, "TransferTypeId", "TransferTypeName"); var ConditionList = ConditionOfItemServices.GetAll(); ViewBag.ConditionList = new SelectList(ConditionList, "ConditionOfItemId", "ConditionOfItemName"); }
// GET: TransferType public ActionResult Index() { var data = transferTypeServices.GetAll(); return(View(data)); }