public JsonResult GetInfo(string ID) { var mql2 = TF_UnitsSet.SelectAll().Where(TF_UnitsSet.Id.Equal(ID)); TF_Units Rmodel = OPBiz.GetEntity(mql2); // groupsBiz.Add(rol); return(Json(Rmodel, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAllInfo() { //var sqlc2 = MainAssociationSet.SelectAll().Where(MainAssociationSet.CategoryTableID.Equal(ID)); //var d = Mabiz.GetEntities(sqlc2); var f = TF_UnitsSet.SelectAll(); var df = OPBiz.GetEntities(f); return(Json(df, JsonRequestBehavior.AllowGet)); }
public string GetDepartment( ) { List <TF_Units> AllList = new List <TF_Units>(); var sql = TF_UnitsSet.SelectAll(); AllList = OPBiz.GetOwnList <TF_Units>(sql); return(JsonHelper.ToJson(AllList, true)); }