public ActionResult AddUserToContacts(string user_name) { string request = RequestBuilder.AddToContactsRequest(user_name); if (SendRequest(request)) { string response; if (RecieveResponse(out response)) { return(new ActionResult(true, response)); } else { return(new ActionResult(false, ErrorMessages.ERR_TIMEOUT)); } } else { return(new ActionResult(false, ErrorMessages.ERR_NOT_CONNECTION)); } }