Beispiel #1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            repository.Delete(id);
            await repository.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }