Exemple #1
0
 public IHttpActionResult Post([FromBody] NoteModel noteModel)
 {
     if (ModelState.IsValid)
     {
         var result = NoteModel.Add(noteModel);
         return(Ok());
     }
     return(BadRequest());
 }