示例#1
0
 public static UserProfileModel Map(UserProfile objModel)
 {
     return(new UserProfileModel
     {
         Id = objModel.Id,
         UserId = objModel.UserId,
         Address = objModel.Address,
         BirthDate = objModel.BirthDate,
         CategoryId = objModel.CategoryId,
         Company = objModel.Company,
         CountryName = objModel.CountryName,
         Description = objModel.Description,
         DisciplineId = objModel.DisciplineId,
         FirstName = objModel.FirstName,
         Locality = objModel.Locality,
         Occupation = objModel.Occupation,
         Phone = objModel.Phone,
         Sex = objModel.Sex,
         StateId = objModel.StateId,
         Summary = objModel.Summary,
         SurName = objModel.SurName,
         WebLink = objModel.WebLink,
         ZipCode = objModel.ZipCode,
         Category = CategoryMap.Map(objModel.Category),
         Discipline = DisciplineMap.Map(objModel.Discipline),
         Date = objModel.BirthDate.ToShortDateString(),
         IsLeonniTeam = objModel.IsLeonniTeam,
         CreatedDate = objModel.CreatedDate,
         ModifiedDate = objModel.ModifiedDate,
         StatusId = objModel.StatusId,
         //  Province = ProvinceMap.Map(objModel.Province)
     });
 }
示例#2
0
        public static List <DisciplineModel> Map(List <Discipline> lstModel)
        {
            var ret = new List <DisciplineModel>();
            int i = 0, lstModel_count = lstModel.Count;

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

            return(ret);
        }
示例#3
0
 public static ProjectModel Map(Project objModel)
 {
     return(new ProjectModel
     {
         Id = objModel.Id,
         Title = objModel.Title,
         DisciplineId = objModel.DisciplineId,
         CreatedDate = objModel.CreatedDate,
         CreatedBy = objModel.CreatedBy,
         DeletedBy = objModel.DeletedBy,
         DeletedDate = objModel.DeletedDate,
         IsDeleted = objModel.IsDeleted,
         Category = CategoryMap.Map(objModel.Category),
         Discipline = DisciplineMap.Map(objModel.Discipline),
     });
 }
示例#4
0
 public static PublicationModel Map(Publication objModel)
 {
     return(new PublicationModel
     {
         Id = objModel.Id,
         GroupId = objModel.GroupId,
         ProjectId = objModel.ProjectId,
         Title = objModel.Title,
         CategoryId = objModel.CategoryId,
         DisciplineId = objModel.DisciplineId,
         Resume = objModel.Resume,
         Description = objModel.Description,
         DeletedBy = objModel.DeletedBy,
         DisabledBy = objModel.DisabledBy,
         DeletedDate = objModel.DeletedDate,
         CreatedDate = objModel.CreatedDate,
         ModifiedDate = objModel.ModifiedDate,
         Category = CategoryMap.Map(objModel.Category),
         Discipline = DisciplineMap.Map(objModel.Discipline),
         CreatedBy = objModel.CreatedBy,
         Status = objModel.Status
                  // UserProfile = UserProfileMap.Map(objModel.UserProfile)
     });
 }