public ActionResult GetAssetByPurchasedDate(FormCollection fc)
        {
            var PurchasedDate = fc["formValue[purchasedDate]"];

            var abpdvmObj = new AssetByPurchasedDateListViewModel();

            var AssetList = _repDepreciation.GetAssetByPurchasedDate(PurchasedDate).ToList();

            var itemList = new List <AssetByPurchasedDateViewModel>();

            foreach (var item in AssetList)
            {
                //var purchaseDepnDetails = _repDepreciation.GetAssetPurchaseByDate(PurchasedDate, item.AssetId);
                var purchaseDepnDetails = _repDepreciation.GetDepreciationDetailsWithAssetPurchase(PurchasedDate, item.AssetId);

                var lstPibavm = new List <PurchasedItemByAssetViewModel>();

                foreach (var purchaseDepnItem in purchaseDepnDetails)
                {
                    var pibavm = new PurchasedItemByAssetViewModel()
                    {
                        PurchaseNo       = purchaseDepnItem.PurchaseNo,
                        PurchasedDate    = purchaseDepnItem.PurchasedDate,
                        AssetPrice       = purchaseDepnItem.AssetPrice,
                        CurrentYear      = purchaseDepnItem.CurrentYear,
                        DepreciationRate = purchaseDepnItem.DepreciationRate,
                        DepreciationType = purchaseDepnItem.DepreciationType,
                        //AssetValue = Decimal.Parse(GetCurrentAssetValue(purchaseDepnItem.AssetPrice,
                        //                                    purchaseDepnItem.PurchasedDate,
                        //                                    purchaseDepnItem.DepreciationRate,
                        //                                    purchaseDepnItem.DepreciationType).ToString("#.##")) //Calculate Asset Value
                        AssetValue = Decimal.Parse(CurrentItemValue.GetCurrentValue(purchaseDepnItem.AssetPurchaseId).ToString("#.##"))
                    };

                    lstPibavm.Add(pibavm);
                }

                var abpdvm = new AssetByPurchasedDateViewModel()
                {
                    AssetId           = item.AssetId,
                    AssetName         = item.AssetName,
                    PurchasedItemList = lstPibavm.ToList()
                };
                itemList.Add(abpdvm);
            }

            abpdvmObj.AssetByPurchasedDateList = itemList;

            return(PartialView(abpdvmObj));
        }