public IActionResult Post(Guid id, [FromBody] StopwordCreateViewModel model) { var stopword = new Stopword() { Id = id, Title = model.Title, Content = model.Content }; var stopwords = _stopwordService.UpdateStopword(id, stopword); return(Ok(stopwords)); }
public IActionResult Post([FromBody] StopwordCreateViewModel model) { var stopword = new Stopword() { Id = Guid.NewGuid(), Title = model.Title, Content = model.Content }; var stopwords = _stopwordService.CreateStopword(stopword); return(Ok(stopwords)); }