// GET: AssetLocations/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AssetLocation assetLocation = db.T_AssetLocations.Find(id);

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

            if (!DataManipulation.CannDeleteAssetLocation(db, id))
            {
                return(RedirectToAction("CanNotDelete"));
            }

            return(View(assetLocation));
        }