public ActionResult <Laptop> UpdateLaptop(int LaptopId, Laptop Laptop)
        {
            Laptop Result = _laptopService.UpdateLaptop(LaptopId, Laptop);

            if (Result == null)
            {
                return(NotFound(LaptopId));
            }
            return(Ok(Result));
        }
        public async Task <IActionResult> UpdateLaptop(string id, [FromBody] LaptopDTO data)
        {
            try
            {
                await laptopService.UpdateLaptop(id, data);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }