/// <summary> /// Add user by id. /// </summary> /// <param name="id">User id.</param> /// <returns></returns> public async Task <bool> AddUser(int id) { Logger.Log.Info($"Getting user by id (id: {id})"); var res = await contacts.GetById(id); if (res) { Logger.Log.Info($"Received user by id {Log(res.Result)}"); Contacts_UserAdded(res.Result); } else { Logger.Log.Error($"Getting user by id error: {res.Code}"); } return(res); }