Beispiel #1
0
 public static EntityFileModel Map(EntityFile objModel)
 {
     return(new EntityFileModel
     {
         Id = objModel.Id,
         SectionId = objModel.SectionId,
         EntityId = objModel.EntityId,
         FileId = objModel.FileId,
         Section = SectionMap.Map(objModel.Section)
     });
 }
Beispiel #2
0
 public static FavouriteModel Map(Favourite objModel)
 {
     return(new FavouriteModel
     {
         Id = objModel.Id,
         EntityId = objModel.EntityId,
         SectionId = objModel.SectionId,
         UserProfileId = objModel.UserProfileId,
         Section = SectionMap.Map(objModel.Section)
     });
 }
Beispiel #3
0
        public static List <SectionModel> Map(List <Section> lstModel)
        {
            var ret = new List <SectionModel>();
            int i = 0, lstModel_count = lstModel.Count;

            for (i = 0; i < lstModel_count; i++)
            {
                ret.Add(SectionMap.Map(lstModel[i]));
            }

            return(ret);
        }