Beispiel #1
0
        public int AddAlbum([FromBody] Newtonsoft.Json.Linq.JObject album)
        {
            string userId = WorkWithDb.getUserId(album["token"].ToString());
            int    id     = WorkWithDb.AddAlbum(userId, album["nameOfAlbum"].ToString());

            return(id);
        }
Beispiel #2
0
        public int AddAlbum(Newtonsoft.Json.Linq.JObject album)
        {
            int id = WorkWithDb.AddAlbum(album["userId"].ToString(), album["nameOfAlbum"].ToString());

            return(id);
        }