public ActionResult Index()
        {
            IList <CustomerDTO> classes = null;

            try
            {
                classes = CustomerQueryDb.GetAll();
            }
            catch (Exception ex)
            {
                if (ex.Message.Contains("Demo.Customers"))
                {
                    throw new ApplicationException(ex.Message +
                                                   " - Make sure you run the demo scripts in the data project");
                }
            }

            return(View(classes));
        }
        public ActionResult Edit(int Id)
        {
            var obj = CustomerQueryDb.GetSingle(Id);

            return(View(obj));
        }