[HttpGet("GetAllOwner")] //Lấy tất cả dữ liệu loại khuyến mãi public IActionResult GetAllOwner(string IDStore) { try { DiscountType danhsach = new DiscountType(); //Khai báo model loại khuyến mãi return(Ok(danhsach.getAllOwner(IDStore))); //Trả về danh sách loại khuyến mãi } catch { return(Ok("Error")); } }