public async Task <ActionResult> AvailableItems() { try { Object data = ""; Init(); SirirajDb db = new SirirajDb(); data = db.AvailableItems(); return(Json(data, JsonRequestBehavior.AllowGet)); } catch (Exception e) { var resultFail = new { Success = "false", e.Message }; return(Json(resultFail, JsonRequestBehavior.AllowGet)); } //Object data = ""; //Init(); //SirirajDb db = new SirirajDb(); //data = db.AvailableItems(); //return Json(data, JsonRequestBehavior.AllowGet); }
public static void iteminei() { SirirajDb db = new SirirajDb(); var data = db.AvailableItems(); }