コード例 #1
0
ファイル: NoteModel.cs プロジェクト: codyborn/notegami
        public static NoteModel AddNote(string content, string city, float latitude, float longitude, string email, string userId)
        {
            NoteModel note = new NoteModel(content, city, latitude, longitude, email, userId);

            if (CosmosDBClient.Insert(note))
            {
                return(note);
            }
            return(null);
        }
コード例 #2
0
ファイル: UserModel.cs プロジェクト: codyborn/notegami
 public bool Save()
 {
     return(CosmosDBClient.Insert(this));
 }
コード例 #3
0
ファイル: TransactionModel.cs プロジェクト: codyborn/notegami
        public static bool AddTransaction(string userId, TransactionType type, string tag, string city, Point location, string noteId = "")
        {
            TransactionModel transaction = new TransactionModel(userId, type, tag, city, location, noteId);

            return(CosmosDBClient.Insert(transaction));
        }