public OrdersEditViewModel GetOrderEditPageVM(int id)
        {
            var orderVM = GetOrder(id);

            if (orderVM == null)
            {
                return(null);
            }
            var materials   = u_repo.GetMaterials().ToList();
            var orderEditVM = new OrdersEditViewModel
            {
                Materials = materials,
                Order     = orderVM,
                OrderId   = id
            };

            return(orderEditVM);
        }
 // GET: Admin/Materials
 public ActionResult Index()
 {
     return(View(m_repo.GetMaterials().ToList()));
 }