Exemple #1
0
 [HttpGet("GetByID")]                                    // Lấy dữ liệu loại hình kinh doanh quán ăn theo ID
 public IActionResult GetByID(string id)
 {
     try{
         BusinessType danhsach = new BusinessType();     //Khai báo biến Model
         return(Ok(danhsach.getByID(id)));               //trả về danh sách dữ liệu
     }
     catch {
         return(Ok("Error"));
     }
 }