public IActionResult Index() { var simpleDBManager = new SimplifiedDBManager(); var lastNews = simpleDBManager.ReturnMultipleNews(5); return(View(lastNews)); }
public IActionResult Watch(string newsName) { var newsDTO = new SimplifiedDBManager().ReturnEntityFromDb(newsName, typeof(DTONews)) as DTONews; var watchModel = new DTONews_Text(newsDTO.GetNameOfDoc(), newsName); return(View(watchModel)); }