public NonmonetaryAsset GetNonmonetaryAssetDomainModel(NonmonetaryAssetViewModel nonmonetaryAssetViewModel)
 {
     var nonmonetaryAsset = new NonmonetaryAsset();
     nonmonetaryAsset.Id = nonmonetaryAssetViewModel.Id;
     nonmonetaryAsset.Name = nonmonetaryAssetViewModel.Name.Trim();
     nonmonetaryAsset.Amount = nonmonetaryAssetViewModel.Amount;
     nonmonetaryAsset.Unit = nonmonetaryAssetViewModel.Unit;
     nonmonetaryAsset.StartBalanceValue = nonmonetaryAssetViewModel.StartBalanceValue;
     nonmonetaryAsset.ResidualBalanceValue = nonmonetaryAssetViewModel.ResidualBalanceValue;
     nonmonetaryAsset.EstimatedValue = nonmonetaryAssetViewModel.EstimatedValue;
     nonmonetaryAsset.Currency = nonmonetaryAssetViewModel.Currency;
     nonmonetaryAsset.Description = nonmonetaryAssetViewModel.Description;
     return nonmonetaryAsset;
 }
 public ActionResult UpdateNonmonetaryAsset(NonmonetaryAssetViewModel nonmonetaryAssetView)
 {
     var nonmonetaryAsset = mapper.GetNonmonetaryAssetDomainModel(nonmonetaryAssetView);
     assetService.UpdateNonmonetaryAsset(nonmonetaryAsset);
     return RedirectToAction("Index");
 }
 public ActionResult CreateNonmonetaryAsset()
 {
     var nonmonetaryAssetViewModel = new NonmonetaryAssetViewModel();
     return View("CreateNonmonetaryAsset", nonmonetaryAssetViewModel);
 }