public ActionResult Search(string searching) { if (string.IsNullOrWhiteSpace(searching) || string.IsNullOrEmpty(searching)) { return(BadRequest("Required search string")); } var result = contactListService.Search(searching); return(Ok(result)); }
public ActionResult Search(string searching) { if (string.IsNullOrWhiteSpace(searching) || string.IsNullOrEmpty(searching)) { return(BadRequest("Required search string")); } var result = contactListService.Search(searching); return(Ok(result)); }