public AfflictionStatBlock GetAfflictionByName(string name)
        {
            AfflictionService afflictionService = new AfflictionService(ConnectionString);
            affliction        tempAffliction    = afflictionService.GetAfflictionByName(name);

            return(MapThisToAfflictionStatBlockObject(tempAffliction));
        }
Exemplo n.º 2
0
 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;
     //}
 }
Exemplo n.º 3
0
 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;
     //}
 }
Exemplo n.º 4
0
 public static AfflictionStatBlock MapThisToAfflictionStatBlockObject(affliction Affliction)
 {
     return(Mapper.Map <affliction, AfflictionStatBlock>(Affliction));
 }