public IActionResult GetByName(string name) { return(ApiAction(() => { var consultants = _consultantService.GetConsultantsByName(name); return Accepted(consultants); })); }