예제 #1
0
        public int CreateClassModifier(ClassModifier cmod)
        {
            int proposedReturnValue = -1;

            proposedReturnValue = _context.CreateClassModifier(cmod.ClassModifierID, cmod.ClassID, cmod.StatID, cmod.ModifierAmount);
            return(proposedReturnValue);
        }
예제 #2
0
 public ClassModifier FindClassModifierByClassModifierID(int ClassModifierID)
 {
     ClassModifier proposedReturnValue = null;
     ClassModifierDAL DataLayerObject = _context.FindClassModifierByClassModifierID(ClassModifierID);
     if (null != DataLayerObject)
     {
         proposedReturnValue = new ClassModifier(DataLayerObject);
     }
     return proposedReturnValue;
 }
예제 #3
0
 public List<Modifier> GetClassModifiersRelatedToClasses(int ClassID, int skip, int take)
 {
     List<Modifier> ProposedReturnValue = new List<Modifier>();
     List<ClassModifierDAL> ListOfDataLayerObjects = _context.GetClassModifiersRelatedToClasses(ClassID, skip, take);
     foreach (ClassModifierDAL classmodifier in ListOfDataLayerObjects)
     {
         ClassModifier BusinessObject = new ClassModifier(classmodifier);
         ProposedReturnValue.Add(BusinessObject);
     }
     return ProposedReturnValue;
 }
예제 #4
0
 public void DeleteClassModifier(ClassModifier cmod)
 {
     _context.DeleteClassModifier(cmod.ClassModifierID);
 }