Beispiel #1
0
        public ActionResult AddArticle(int id = 0)
        {
            var model = new ArticleDetailViewModel();

            CategoryManager categoryManager = new CategoryManager();
            var             categories      = categoryManager.GetAll();

            ViewBag.Categories = categories;
            if (id != 0)
            {
                var article = _articleManager.Get(a => a.Id == id);
                model.Article = article;
            }
            return(View(model));
        }
        //TUMUNU GETIR
        public IEnumerable <Writing> Get()
        {
            List <Writing> liste = new List <Writing>();

            liste = ArticleManager.Get();

            return(liste);
        }
Beispiel #3
0
        public async Task Get(long id)
        {
            var data = await _articleManager.Get(id);

            //return File(new FileStream("", FileMode.Open), "application/octet-stream", "");
        }