/// <summary>
        /// Posts the view.
        /// </summary>
        private void PostView()
        {
            var a         = currentService.GetAll();
            var listModel = a.Select(b => b.ToModel()).ToList();

            view.PostView(listModel);
        }
Example #2
0
 public IActionResult Create()
 {
     ViewData["TheLoaiId"] = new SelectList(_theLoaiService.GetAll(), "Id", "TenTheLoai");
     return(View());
 }