public IActionResult GetGroupDetails(string name, string phoneNumber) { try { var details = _groupsService.GetGroupDetails(name, phoneNumber); return(Ok(details)); } catch (NullReferenceException e) { return(NotFound(e.Message)); } }