Example #1
0
        public int CreateRace(RaceBLL race)
        {
            int proposedReturnValue = -1;

            proposedReturnValue = _context.CreateRace(race.RaceID, race.RaceName, race.RaceModifier);
            return(proposedReturnValue);
        }
Example #2
0
 public RaceBLL FindRaceByRaceID(int RaceID)
 {
     RaceBLL proposedReturnValue = null;
     RaceDAL DataLayerObject = _context.FindRaceByRaceID(RaceID);
     if (null != DataLayerObject)
     {
         proposedReturnValue = new RaceBLL(DataLayerObject);
     }
     return proposedReturnValue;
 }
Example #3
0
 public List<RaceBLL> GetRaces(int skip, int take)
 {
     List<RaceBLL> ProposedReturnValue = new List<RaceBLL>();
     List<RaceDAL> ListOfDataLayerObjects = _context.GetRaces(skip, take);
     foreach (RaceDAL race in ListOfDataLayerObjects)
     {
         RaceBLL BusinessObject = new RaceBLL(race);
         ProposedReturnValue.Add(BusinessObject);
     }
     return ProposedReturnValue;
 }
Example #4
0
 public void DeleteRace(RaceBLL race)
 {
     _context.DeleteRace(race.RaceID);
 }
Example #5
0
        public void JustUpdateRace(RaceBLL race)
        {

            _context.JustUpdateRace(race.RaceID, race.RaceName, race.RaceModifier);

        }