// GET: ExportToPdf/Details/{Guid}
        public ActionResult Details(Guid id)
        {
            if (id == Guid.Empty)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            EquipmentRestrictionGridRow equipmentRestrictionGridRow = equipmentRestrictionServices.GetEquipmentRestriction(id);

            if (equipmentRestrictionGridRow == null)
            {
                return(HttpNotFound());
            }

            return(View(equipmentRestrictionGridRow));
        }
        public EquipmentRestrictionGridRow GetEquipmentRestriction(Guid Id)
        {
            var result = new EquipmentRestrictionGridRow();

            try
            {
                var query = from equipmentRestrictions in dbContext.EquipmentRestrictions
                            where equipmentRestrictions.Id == Id
                            select new EquipmentRestrictionGridRow
                {
                    Id   = equipmentRestrictions.Id,
                    Name = equipmentRestrictions.Name
                };

                result = query.FirstOrDefault() ?? new EquipmentRestrictionGridRow();
            }
            catch (Exception e)
            {
                Debug.WriteLine($"Exception: {e.Message}");
            }
            return(result);
        }