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