private PostAround.Entities.MyMessage GetMessageByID(int msgId) { string currLon = "", currLat = ""; int regionId = 0; int timeZone = 0; int userId = 0; userId = Tools.GetUserIdFromCookie(Context); //if (userId <= 0) //{ // AddCommentPanel.Visible = false; //} PostAroundServiceClient client = new PostAroundServiceClient(); PostAround.Entities.MyMessage message = client.GetMessageById(msgId, currLon, currLat, regionId, timeZone, userId); if (message != null) { message.comments = client.GetCommentsByMessageID(message.msgId, userId, timeZone, 0); } client.Close(); return message; }
private MyMessage GetMessageByID(int msgId) { string currLon = "", currLat = ""; int regionId = 0; int timeZone = 0; int userId = 0; userId = 0; PostAroundServiceClient client = new PostAroundServiceClient(); PostAround.Entities.MyMessage message = client.GetMessageById(msgId, currLon, currLat, regionId, timeZone, userId); if (message != null) { message.comments = client.GetCommentsByMessageID(message.msgId, userId, timeZone, 0); } client.Close(); return message; }