Exemple #1
0
        public async Task DeleteTest()
        {
            var fakeRepository = Mock.Of <IStudioRepository>();
            var studioService  = new StudioService(fakeRepository);

            int studioId = 1;
            await studioService.DeleteAndSave(studioId);
        }
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            await _studioService.DeleteAndSave(id);

            return(RedirectToAction(nameof(Index)));
        }