/// <summary> /// Get all menul for thecode /// </summary> /// <param name="thecode"></param> /// <returns></returns> public JsonResult listFront(string thecode) { List <SYSMENU_OBJ> li = null; //Khai báo lấy dữ liệu SYSMENU_BUS bus = new SYSMENU_BUS(); li = bus.getFont(thecode); bus.CloseConnection(); int ret = 0; if (li.Count < 1) { ret = -1; } SYSMENU_OBJ obj = new SYSMENU_OBJ(); if (li.Count >= 1) { obj = li[0]; li.RemoveAt(0); } return(Json(new { lst = li, //Danh sách obj = obj, ret = ret //ok }, JsonRequestBehavior.AllowGet)); }