public static List<ModuleRelation> ConvertToListOfApplicationModuleRelation(List<ApplicationModuleRelation> app_mods)
 {
     List<ModuleRelation> relation = new List<ModuleRelation>();
     foreach (ApplicationModuleRelation module in app_mods)
     {
         ModuleRelation relationItem = new ModuleRelation()
         {
             ModuleID = module.ModuleID,
             ModuleName = module.ModuleName
         };
         relation.Add(relationItem);
     }
     return relation;
 }
 public static List<ModuleRelation> ConvertToListOfModuleRelation(List<SubProcessModuleRelation> modules)
 {
     List<ModuleRelation> relation = new List<ModuleRelation>();
     foreach (SubProcessModuleRelation module in modules)
     {
         ModuleRelation relationItem = new ModuleRelation()
         {
             ModuleID = module.ModuleID,
             ModuleName = module.ModuleName
         };
         relation.Add(relationItem);
     }
     return relation;
 }