/// <summary> /// Posts the view. /// </summary> private void PostView() { var a = currentService.GetAll(); var listModel = a.Select(b => b.ToModel()).ToList(); view.PostView(listModel); }
public IActionResult Create() { ViewData["TheLoaiId"] = new SelectList(_theLoaiService.GetAll(), "Id", "TenTheLoai"); return(View()); }