public IActionResult GetBrandByName(string name) { try { return(Ok(_brandServices.GetBrandByName(name))); } catch (Exception) { return(StatusCode(500)); } }