예제 #1
0
 public bool MatchdayExist(int matchdayId)
 {
     return(Matchdays.Any(x => x.Id == matchdayId));
 }
예제 #2
0
 public Matchday GetMatchdayById(int id)
 {
     return(Matchdays.Find(id));
 }
예제 #3
0
 public void RemoveMatchday(Matchday matchday)
 {
     Matchdays.Remove(matchday);
 }
예제 #4
0
 public void CreateMatchday(Matchday matchday)
 {
     Matchdays.Add(matchday);
     SaveChanges();
 }