public OperationResult Post([FromBody] NewsModel news) { var result = _service.AddNews(news); return(result); }
public void Post([FromBody] NewsModel newsItemToAdd) { business.AddNews(newsItemToAdd); }
public OperationResult Post([FromBody] NewsModel news) { var result = _service.AddNews(news); return(result); }
public void Post([FromBody] NewsModel newsItemToAdd) { business.AddNews(newsItemToAdd); }