public ActionResult <Poi> Post([FromBody] CreatePoiModel createTodoModel) { if (createTodoModel == null) { return(BadRequest()); } var poi = new Poi(createTodoModel.Description); _repository.Create(poi); return(CreatedAtRoute("GetByPoiId", new { id = poi.Id }, poi)); }