public IHttpActionResult Post(Goal goal) { if (!ModelState.IsValid) { BadRequest(ModelState); } Goal Created = Logic.Create(goal); return(Ok(Created)); }