O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the Delete Feature

Before we can implement a delete action, we will have to update the repository so that it supports deleting event objects. Listing 31-31 shows the modifications required for the IRepository interface.

Listing 31-31. Adding a delete method to the IRepository interface

using System.Collections.Generic; namespace TriathlonApp.Models.Domain.Repository {     public interface IRepository {         IEnumerable<Event> Events { get; }         void SaveEvent(Event ev);         void DeleteEvent(Event ev);         IEnumerable<EventType> EventTypes { get; }         IEnumerable<ReferenceTime> ReferenceTimes { get; }         IEnumerable<Athlete> Athletes { get; }         RankingSet GetPersonalRank(Event ev);         RankingSet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required