public ActionResult SetDepreciationForAll(FormCollection fc)
        {
            var sdfavm = new SetDepreciationForAllViewModel()
            {
                DepreciationRate      = Decimal.Parse(fc["formValue[DepreciationRate]"]),
                DepreciationType      = fc["formValue[DepreciationType]"],
                CurrentYear           = DateTime.Now.Year,
                RateStatus            = 1,
                DepreciationEntryDate = DateTime.Now
            };

            var AssetId       = Int64.Parse(fc["formValue[SelectedAssetId]"]);
            var PurchasedDate = fc["formValue[PurchasedDateList]"];

            var PurchaseList = _repDepreciation.GetAssetPurchaseByDate(PurchasedDate, AssetId).Select(x => x.AssetPurchaseId).ToList();

            int isDepreciated = 0;

            foreach (var item in PurchaseList)
            {
                isDepreciated = _repDepreciation.SetDepreciationForAll(item, sdfavm);
            }

            if (isDepreciated == 1)
            {
                return(Content(sdfavm.DepreciationRate.ToString()));
            }
            else
            {
                return(Content(""));
            }
        }