public int UpdateAssetCategory(AssetCategoryModel assetCategoryModel) { AssetCategory assetCategory = _assetCategoryRepository.GetAssetCategoryByID(assetCategoryModel.ID); if (assetCategory != null) { assetCategory.Description = assetCategoryModel.Description; assetCategory.Comment = assetCategoryModel.Comment; } _assetCategoryRepository.UpdateAssetCategory(assetCategory); return(assetCategory.ID); }
public int UpdateAssetCategory(AssetCategoryModel assetCategoryModel) { return(iAssetCategoryRepository.UpdateAssetCategory(assetCategoryModel)); }