| 1234567891011121314151617181920212223242526 | 
							
- (function() {
 
-     BemsWebApplication.CmFileCategoryViewModel = function(data) {
 
-             this.FileCategoryId = ko.observable();
 
-             this.Name = ko.observable();
 
-             if(data)
 
-                 this.fromJS(data);
 
-     };
 
-     $.extend(BemsWebApplication.CmFileCategoryViewModel.prototype, {
 
-         toJS: function() {
 
-             return {
 
-                 FileCategoryId: this.FileCategoryId(),
 
-                 Name: this.Name(),
 
-             };
 
-         },
 
-         fromJS: function(data) {
 
-             if(data) {
 
-                 this.FileCategoryId(data.FileCategoryId);
 
-                 this.Name(data.Name);
 
-             }
 
-         }
 
-     });
 
- })();
 
 
  |