예제 #1
0
        public IActionResult Add(int?Id)
        {
            ViewBag.CategoryList = CategoryDAL.CategoryList();
            BlogModel model = new BlogModel();

            if (Id != null)
            {
                model = BlogDAL.GetBlogModel(Id.Value);
            }
            return(View(model));
        }