//List all Boxes public ActionResult List() { List <BoxModel> boxes = new List <BoxModel>(); foreach (BoxDTO dto in _service.GetAll()) { boxes.Add(Convert(dto)); } return(View(boxes)); }
private void RefreshDataGridView() { dataGridViewAllBoxes.DataSource = _boxService.GetAll(); }