public IActionResult FindByTerm(string atrribute, string term) { //Attribute and term canot be null if (atrribute == null || term == null) { return(BadRequest()); } string entity = "stores"; //hardcoded entity for generic method var store = _storeBusiness.FindByTerm(entity, atrribute, term); if (store == null) { return(NotFound()); } return(Ok(store)); }