public ViewResult Details(int id)
        {
            FixedAssetBll bll        = new FixedAssetBll();
            FixedAsset    fixedAsset = bll.Gets(x => x.Id == id).SingleOrDefault();

            return(View(fixedAsset));
        }
        // GET: FixedAsset
        public ActionResult Index()
        {
            FixedAssetBll     bll  = new FixedAssetBll();
            List <FixedAsset> list = bll.GetAll().ToList();

            return(View(list));
        }
        public ActionResult Delete(int id, FixedAsset model)
        {
            var fixedAsset = new FixedAssetBll().Get(x => x.Id == id);

            if (fixedAsset != null)
            {
                new FixedAssetBll().Delete(fixedAsset);
            }
            return(RedirectToAction("Index"));
        }
        public ActionResult Update(int id)
        {
            FixedAsset model = new FixedAssetBll().Get(x => x.Id == id);

            return(View(model));
        }