Exemple #1
0
        public ExampleModuleClassModel GetExampleModuleClass(int ID)
        {
            var ExampleModuleClass = ExampleModuleClassInfoProvider.GetExampleModuleClassInfo(ID);

            return(new ExampleModuleClassModel()
            {
                Name = ExampleModuleClass?.ExampleModuleClassName
            });
        }
Exemple #2
0
        public IEnumerable <ExampleModuleClassModel> GetExampleModuleClasses()
        {
            var ModelClasses = ExampleModuleClassInfoProvider.GetExampleModuleClasses()
                               .ToList();

            return(ModelClasses.Select(x =>
            {
                return new ExampleModuleClassModel()
                {
                    Name = x.ExampleModuleClassName
                };
            }));
        }
Exemple #3
0
 /// <summary>
 /// Updates the object using appropriate provider.
 /// </summary>
 protected override void SetObject()
 {
     ExampleModuleClassInfoProvider.SetExampleModuleClassInfo(this);
 }
Exemple #4
0
 /// <summary>
 /// Deletes the object using appropriate provider.
 /// </summary>
 protected override void DeleteObject()
 {
     ExampleModuleClassInfoProvider.DeleteExampleModuleClassInfo(this);
 }
Exemple #5
0
 public ExampleModuleClassInfo GetExampleModuleClass_BaseInfo(int ID)
 {
     return(ExampleModuleClassInfoProvider.GetExampleModuleClassInfo(ID));
 }
Exemple #6
0
 /// <summary>
 /// No Cache needed as the Interceptor will detect the return type is IEnumerable of BaseInfo and add the "objecttype|all" dependency
 /// </summary>
 /// <returns>All the Example Module Class Info objects</returns>
 public IEnumerable <ExampleModuleClassInfo> GetExampleModuleClasses_BaseInfo()
 {
     return(ExampleModuleClassInfoProvider.GetExampleModuleClasses().ToList());
 }