public int CreateRace(RaceBLL race) { int proposedReturnValue = -1; proposedReturnValue = _context.CreateRace(race.RaceID, race.RaceName, race.RaceModifier); return(proposedReturnValue); }
public RaceBLL FindRaceByRaceID(int RaceID) { RaceBLL proposedReturnValue = null; RaceDAL DataLayerObject = _context.FindRaceByRaceID(RaceID); if (null != DataLayerObject) { proposedReturnValue = new RaceBLL(DataLayerObject); } return proposedReturnValue; }
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; }
public void DeleteRace(RaceBLL race) { _context.DeleteRace(race.RaceID); }
public void JustUpdateRace(RaceBLL race) { _context.JustUpdateRace(race.RaceID, race.RaceName, race.RaceModifier); }