public IHttpActionResult Create(DateDTO dateDTO) { if (!ModelState.IsValid) { return(BadRequest("Not a valid model")); } dateService.Create(dateDTO); return(Ok()); }