예제 #1
0
        public IFeatStatBlock GetFeatByNameSource(string name, string source)
        {
            FeatService _featService = new FeatService(ConnectionString);
            feats       tempFeat     = _featService.GetFeatByNameSource(name, source);

            return(MapThisToFeatStatBlockObject(tempFeat));
        }
        public static IFeatStatBlock GetMythicFeatByName(string name)
        {
            FeatService _featService = new FeatService(StatBlockGlobals.ConnectionString);
            feats       tempFeat     = _featService.GetMythicFeatByName(name);

            return(MapThisToFeatStatBlockObject(tempFeat));
        }
예제 #3
0
 public IEnumerable <string> UpdateFeat(feats feat)
 {
     return(base.Update <feats>(feat));
     //using (IRepository<feats> featRepository = CreateRepository<feats>())
     //{
     //    IEnumerable<string> rules;
     //    featRepository.Update(Feat, out rules);
     //    return rules;
     //}
 }
예제 #4
0
 public IEnumerable <string> AddFeat(feats newFeat)
 {
     return(base.Add <feats>(newFeat));
     //using (IRepository<feats> featRepository = CreateRepository<feats>())
     //{
     //    IEnumerable<string> rules;
     //    featRepository.Add(newFeat, out rules);
     //    return rules;
     //}
 }
        public IHttpActionResult UpdateFeat([FromBody] feats feat)
        {
            if (feat == null)
            {
                return(Ok("No Feat Data"));
            }

            _featService = GetFeatService();
            IEnumerable <string> Error = _featService.UpdateFeat(feat);

            return(Ok(Error));
        }
예제 #6
0
 public static FeatStatBlock MapThisToFeatStatBlockObject(feats Feats)
 {
     return(Mapper.Map <feats, FeatStatBlock>(Feats));
 }