Exemplo n.º 1
0
        public async Task <bool> DeleteArtist(int id)
        {
            if (!HttpContext.User.Identity.IsAuthenticated)
            {
                throw new ApiException("You have to be logged in to modify data", 401);
            }


            var db = new AlbumRepository(context);

            return(await db.DeleteArtist(id));
        }
Exemplo n.º 2
0
 public async Task<bool> DeleteArtist(int id)
 {
     var db = new AlbumRepository(context);
     return await db.DeleteArtist(id);
 }
Exemplo n.º 3
0
        public async Task<bool> DeleteArtist(int id)
        {
            if (!HttpContext.User.Identity.IsAuthenticated)
                throw new ApiException("You have to be logged in to modify data", 401);


            var db = new AlbumRepository(context);
            return await db.DeleteArtist(id);
        }
Exemplo n.º 4
0
        public async Task <bool> DeleteArtist(int id)
        {
            var db = new AlbumRepository(context);

            return(await db.DeleteArtist(id));
        }