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); }
public int AddAlbum(Newtonsoft.Json.Linq.JObject album) { int id = WorkWithDb.AddAlbum(album["userId"].ToString(), album["nameOfAlbum"].ToString()); return(id); }