public IHttpActionResult CreateHorse(HorseModel horse) { var mappedHorse = HorseMapping.Map(horse); if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Ok(_horseService.CreateHorse(mappedHorse))); }
public IHttpActionResult CreateHorse(HorseModel horse) { var mappedHorse = HorseMapping.Map(horse); if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Ok(_horseService.CreateHorse(mappedHorse))); }