public async Task <IActionResult> GetLaptopNames([FromQuery] string name) { try { return(Ok(await laptopService.GetModelNameList(name ?? ""))); } catch (Exception ex) { return(BadRequest(ex.Message)); } }