public UserModel() { Club = new ClubModel(); AccessRightsRight = new List <AccessrightRightModel>(); AccessRights = new List <AccessrightModel>(); UserInformation = new UserInformationModel(); GenericValues = new List <AccountInformationGeneric>(); }
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) }); }
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); }