public int CreateClassModifier(ClassModifier cmod) { int proposedReturnValue = -1; proposedReturnValue = _context.CreateClassModifier(cmod.ClassModifierID, cmod.ClassID, cmod.StatID, cmod.ModifierAmount); return(proposedReturnValue); }
public ClassModifier FindClassModifierByClassModifierID(int ClassModifierID) { ClassModifier proposedReturnValue = null; ClassModifierDAL DataLayerObject = _context.FindClassModifierByClassModifierID(ClassModifierID); if (null != DataLayerObject) { proposedReturnValue = new ClassModifier(DataLayerObject); } return proposedReturnValue; }
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; }
public void DeleteClassModifier(ClassModifier cmod) { _context.DeleteClassModifier(cmod.ClassModifierID); }