public IHttpActionResult AddFeat([FromBody] feats feat)
        {
            if (feat == null)
            {
                return(Ok("No Feat Data"));
            }

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

            return(Ok(Error));
        }
Esempio n. 2
0
        public async Task <IHttpActionResult> Post([FromBody] FeatViewModel value)
        {
            var postedFeat = await Task.Run(() => _featService.AddFeat(value));

            return(CreatedAtRoute("FeatGet", new { id = postedFeat.Id }, postedFeat));
        }