示例#1
0
        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);
        }
示例#2
0
 public int UpdateAssetCategory(AssetCategoryModel assetCategoryModel)
 {
     return(iAssetCategoryRepository.UpdateAssetCategory(assetCategoryModel));
 }