Exemplo n.º 1
0
        public async Task <BaseResponse <string> > Delete(Music music)
        {
            BaseResponse <string> baseResponse = new BaseResponse <string>();
            var isDeleted = await _musicRepository.DeleteById(music.Id);

            baseResponse.Result = isDeleted > 0 ? "Success Delete" : null;
            return(baseResponse);
        }