public async Task <string> AddSocialPost(SocialUpdateVertex Update, string User) { Update.id = Guid.NewGuid().ToString(); Update.Title = Update.Title ?? ""; Update.Body = Update.Body ?? ""; Update.Url = Update.Url ?? new List <string>(); Update.ImageUrl = Update.ImageUrl ?? new List <string>(); await client.Add(Update).SubmitAsync(); return(Update.id); }
public SocialUpdateModel() { Update = new SocialUpdateVertex(); Comments = new List <SocialCommentVertex>(); }