public void AddComment(Newtonsoft.Json.Linq.JObject photo) { WorkWithDb.AddComment(Convert.ToInt32(photo["idPost"]), photo["text"].ToString()); }