示例#1
0
 public JsonResult ReadTT(int Idproduct)
 {
     try
     {
         var data = connect_entity.Get_DientuThuoctinh().Where(x => x.Idproduct == Idproduct).OrderBy(x => x.Ord).ToList();
         Resurt = 1; //trạng thái thành công
         return(Json(data, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json(ex.Message, JsonRequestBehavior.AllowGet));
     }
 }