public AfflictionStatBlock GetAfflictionByName(string name) { AfflictionService afflictionService = new AfflictionService(ConnectionString); affliction tempAffliction = afflictionService.GetAfflictionByName(name); return(MapThisToAfflictionStatBlockObject(tempAffliction)); }
public IEnumerable <string> UpdateAffliction(affliction affliction) { return(base.Update <affliction>(affliction)); //using (IRepository<affliction> afflictionRepository = CreateRepository<affliction>()) //{ // IEnumerable<string> rules; // afflictionRepository.Update(Affliction, out rules); // return rules; //} }
public IEnumerable <string> AddAffliction(affliction newAffliction) { return(base.Add <affliction>(newAffliction)); //using (IRepository<affliction> afflictionRepository = CreateRepository<affliction>()) //{ // IEnumerable<string> rules; // afflictionRepository.Add(newAffliction, out rules); // return rules; //} }
public static AfflictionStatBlock MapThisToAfflictionStatBlockObject(affliction Affliction) { return(Mapper.Map <affliction, AfflictionStatBlock>(Affliction)); }