// GET: Glasses/Details/5
        public ActionResult Details(int?id)
        {
            #region EF6 Code
            //if (id == null)
            //{
            //    return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            //}
            //Glass glass = db.GlassSet.Find(id);
            //if (glass == null)
            //{
            //    return HttpNotFound();
            //}
            //return View(glass);
            #endregion

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var glass = _repo.GetGlassWithOrder(id.Value);
            if (glass == null)
            {
                return(HttpNotFound());
            }
            return(View(glass));
        }