예제 #1
0
        //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));
        }
예제 #2
0
 private void RefreshDataGridView()
 {
     dataGridViewAllBoxes.DataSource = _boxService.GetAll();
 }