Exemple #1
0
 public UserModel()
 {
     Club = new ClubModel();
     AccessRightsRight = new List <AccessrightRightModel>();
     AccessRights      = new List <AccessrightModel>();
     UserInformation   = new UserInformationModel();
     GenericValues     = new List <AccountInformationGeneric>();
 }
Exemple #2
0
 public static Club MapClubModelToClub(ClubModel model)
 {
     return(new Club()
     {
         Id = model.Id,
         Name = model.Name,
         ShortName = model.ShortName,
         Image = model.Image,
         Description = model.Description,
         Settings = JsonConvert.SerializeObject(model.Settings)
     });
 }
Exemple #3
0
        public static ClubModel MapClub(Club club)
        {
            ClubModel clubModel = new ClubModel()
            {
                Id          = club.Id,
                Image       = club.Image,
                Name        = club.Name,
                ShortName   = club.ShortName,
                Description = club.Description,
                Settings    = JsonConvert.DeserializeObject <ClubSettingsModel>(club.Settings)
            };

            return(clubModel);
        }