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