public JsonResult SaveFinanceApi(FinanceViewModel financeVm)
 {
     ModelState.Remove("Id");
     if (ModelState.IsValid)
     {
         var finance = new Finance()
         {
             AssetEntryId    = financeVm.AssetEntryId,
             VendorId        = financeVm.VendorId,
             PurchaseDate    = financeVm.PurchaseDate,
             ParchaseOrderNo = financeVm.ParchaseOrderNo,
             ParchasePrice   = financeVm.ParchasePrice
         };
         int count = _financeManager.Add(finance);
         return(Json(count, JsonRequestBehavior.AllowGet));
     }
     return(Json(0, JsonRequestBehavior.AllowGet));
 }