Beispiel #1
0
 public List <Team> UpdatePoint(TeamVM entity)
 {
     if (entity.Team1Score > entity.Team2Score)
     {
         entity.PointHome = 1;
         entity.PointAway = -1;
         _teamDal.UpdatePoint(entity);
     }
     else if (entity.Team2Score > entity.Team1Score)
     {
         entity.PointAway = 1;
         entity.PointHome = -1;
         _teamDal.UpdatePoint(entity);
     }
     else
     {
         // Beraberlik sıfır puan
     }
     return(GetAll());
 }