public int CreateSpell(CreateSpellRequest request) { //Check for nulls var newSpell = Spell.Create( id: null, level: request.Level.Value, name: request.Name, duration: request.Duration, concentration: request.Concentration.Value, verbalComponent: request.VerbalComponent.Value, somaticComponent: request.SomaticComponent.Value, materialComponent: request.MaterialComponent.Value, materialComponentCost: request.MaterialComponentCost, requiresTouchAttack: request.RequiresTouchAttack.Value, requiresRangedAttack: request.RequiresRangedAttack.Value, requiresSave: request.RequiresSave.Value, save: request.Save, range: request.Range, area: request.Area, spellSchool: request.SpellSchool, castingTime: request.CastingTime, ritual: request.Ritual.Value, classes: request.Classes, source: request.Source); return(this.spellRepo.SaveSpell(newSpell)); }
public int CreateSpell(CreateSpellRequest request) { throw new NotImplementedException(); }