public ClassBLL FindClassByClassID(int ClassID) { ClassBLL proposedReturnValue = null; ClassDAL DataLayerObject = _context.FindClassByClassID(ClassID); if (null != DataLayerObject) { proposedReturnValue = new ClassBLL(DataLayerObject); } return proposedReturnValue; }
public List<ClassBLL> GetClasses(int skip, int take) { List<ClassBLL> ProposedReturnValue = new List<ClassBLL>(); List<ClassDAL> ListOfDataLayerObjects = _context.GetClasses(skip, take); foreach (ClassDAL @class in ListOfDataLayerObjects) { ClassBLL BusinessObject = new ClassBLL(@class); ProposedReturnValue.Add(BusinessObject); } return ProposedReturnValue; }
public void DeleteClass(ClassBLL @class) { _context.DeleteClass(@class.ClassID); }
public void JustUpdateClass(ClassBLL @class) { _context.JustUpdateClass(@class.ClassID, @class.ClassName, @class.Description, @class.ClassModifier); }
public int CreateClass(ClassBLL @class) { int proposedReturnValue = -1; proposedReturnValue = _context.CreateClass(@class.ClassID, @class.ClassName, @class.Description, @class.ClassModifier); return proposedReturnValue; }