public IHttpActionResult GetFeatByNameSource(string name, string source)
        {
            _featService = GetFeatService();
            var feat = _featService.GetFeatByNameSource(name, source);

            return(Ok(feat));
        }
        public IHttpActionResult GetMythicFeatByName(string nameMythic)
        {
            _featService = GetFeatService();
            var feat = _featService.GetMythicFeatByName(nameMythic);

            if (feat == null)
            {
                return(NotFound());
            }
            return(Ok(feat));
        }
        public IHttpActionResult GetFeatByID(int id)
        {
            _featService = GetFeatService();
            var feat = _featService.FindBy(id);

            if (feat == null)
            {
                return(NotFound());
            }
            return(Ok(feat));
        }
        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));
        }
Example #5
0
 public FeatController(IFeatService featService)
 {
     _featService = featService;
 }
Example #6
0
 public FeatController(IFeatService featService)
 {
     _featService = featService;
 }