// Deletes a coach /// <summary> /// Deletes a coach by <paramref name="id"/>. /// </summary> /// <returns> /// Nothing /// </returns> /// <remarks> /// <para>The coach is not deleted from the DBContext, it's property ISDeleted is just made true</para> /// </remarks> /// <param name="id">An integer.</param> public void DeleteCoach(int id) { Coach coach = this.GetCoachById(id); coach.Delete(); context.SaveChanges(); }