Exemple #1
0
 public ClassBLL FindClassByClassID(int ClassID)
 {
     ClassBLL proposedReturnValue = null;
     ClassDAL DataLayerObject = _context.FindClassByClassID(ClassID);
     if (null != DataLayerObject)
     {
         proposedReturnValue = new ClassBLL(DataLayerObject);
     }
     return proposedReturnValue;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public void DeleteClass(ClassBLL @class)
 {
     _context.DeleteClass(@class.ClassID);
 }
Exemple #4
0
        public void JustUpdateClass(ClassBLL @class)
        {

            _context.JustUpdateClass(@class.ClassID, @class.ClassName, @class.Description, @class.ClassModifier);

        }
Exemple #5
0
 public int CreateClass(ClassBLL @class)
 {
     int proposedReturnValue = -1;
     proposedReturnValue = _context.CreateClass(@class.ClassID, @class.ClassName, @class.Description, @class.ClassModifier);
     return proposedReturnValue;
 }