Пример #1
0
 public Troop(bool Alive, UnitTypes Type, GenderTypes Gender, Coords Location)
 {
     this.Alive    = Alive;
     this.Type     = Type;
     this.Gender   = Gender;
     this.Location = Location;
 }
Пример #2
0
        private CollectionDataService()
        {
            var xmlRegionCollection = context
                                      .Deserialize <RegionsCollection>("..\\..\\Data_Source\\RegionsData.xml")
                                      .Region;

            RegionCollection.AddRange(xmlRegionCollection);

            var xmlGendersType = context
                                 .Deserialize <GendersCollection>("..\\..\\Data_Source\\GenderData.xml")
                                 .Gender;

            GenderTypes.AddRange(xmlGendersType);

            var xmlSubjects = context
                              .Deserialize <SubjectsCollection>("..\\..\\Data_Source\\SubjectsWithStudentsData.xml")
                              .Subjects;

            SubjWithStudents.AddRange(xmlSubjects);

            var users = context
                        .Deserialize <UsersCollection>("..\\..\\Data_Source\\UniversitySystemData.xml");

            List <Lecturer> xmlLecturers = users.Lecturers;

            Lecturers.AddRange(xmlLecturers);

            List <Student> xmlStudents = users.Students;

            Students.AddRange(xmlStudents);
        }
Пример #3
0
        /// <summary>
        /// Fill method for populating an entire collection of GenderTypes
        /// </summary>
        public virtual void Fill(GenderTypes genderTypes)
        {
            // create the connection to use
            SqlConnection cnn = new SqlConnection(GenderType.GetConnectionString());


            try
            {
                using (cnn)
                {
                    // open the connection
                    cnn.Open();


                    // create an instance of the reader to fill.
                    SqlDataReader datareader = SqlHelper.ExecuteReader(cnn, "gsp_SelectGenderTypes");


                    // Send the collection and data to the object factory
                    CreateObjectsFromData(genderTypes, datareader);


                    // close the connection
                    cnn.Close();
                }


                // nullify the connection
                cnn = null;
            }
            catch (SqlException sqlex)
            {
                throw sqlex;
            }
        }
Пример #4
0
        /// <summary>
        /// The object factory for a particular data collection instance.
        /// </summary>
        public virtual void CreateObjectsFromData(GenderTypes gendertypes, System.Data.DataSet data)
        {
            // Do nothing if we have nothing
            if (data == null || data.Tables.Count == 0 || data.Tables[0].Rows.Count == 0)
            {
                return;
            }


            // Create a local variable for the new instance.
            GenderType newobj = null;

            // Create a local variable for the data row instance.
            System.Data.DataRow dr = null;


            // Iterate through the table rows
            for (int i = 0; i < data.Tables[0].Rows.Count; i++)
            {
                // Get a reference to the data row
                dr = data.Tables[0].Rows[i];
                // Create a new object instance
                newobj = System.Activator.CreateInstance(gendertypes.ContainsType[0]) as GenderType;
                // Let the instance set its own members
                newobj.SetMembers(ref dr);
                // Add the new object to the collection instance
                gendertypes.Add(newobj);
            }
        }
Пример #5
0
        public IActionResult Pull([FromBody] Model model)
        {
            var acls     = new WorkspaceAccessControlLists(this.allors.Session.GetUser());
            var response = new PullResponseBuilder(acls, this.TreeService);

            var organisationContactRelationship = (OrganisationContactRelationship)this.allors.Session.Instantiate(model.Id);

            response.AddObject("organisationContactRelationship", organisationContactRelationship);

            response.AddObject("contact", organisationContactRelationship.Contact);

            var locales = new Locales(this.allors.Session).Extent();

            response.AddCollection("locales", locales);

            var genders = new GenderTypes(this.allors.Session).Extent();

            response.AddCollection("genders", genders);

            var salutations = new Salutations(this.allors.Session).Extent();

            response.AddCollection("salutations", salutations);

            var contactKinds = new OrganisationContactKinds(this.allors.Session).Extent();

            response.AddCollection("organisationContactKinds", contactKinds);

            return(this.Ok(response.Build()));
        }
		public List<GenderType> Get(GenderTypes request)
		{
			GenderTypeRepository repository = GetGenderTypeRepository();
			List<GenderTypeEntity> entities = repository.Read();

			return entities.TranslateToResponse();
		}
Пример #7
0
    public static GenderTypes BGetGender()
    {
        int         index  = random.Next(BTypes.Count);
        GenderTypes output = BTypes[index];

        BTypes.RemoveAt(index);
        return(output);
    }
Пример #8
0
        /// <summary>
        /// Gets all the available objects.
        /// </summary>
        public virtual GenderTypes GetAll()
        {
            // create a new instance of the return object
            GenderTypes objects = new GenderTypes();


            // fill the objects
            this.Fill(objects);


            // return the filled object from the service
            return(objects);
        }
Пример #9
0
        /// <summary>
        /// Converts the given Gender to a Object Pronoun string
        /// </summary>
        /// <param name="type">The type of Gender</param>
        /// <returns>Returns a string representing the object pronoun</returns>
        public static string ObjectPronoun(this GenderTypes type)
        {
            switch (type)
            {
            case GenderTypes.Male:
                return("him");

            case GenderTypes.Female:
                return("her");

            default:
                return("it");
            }
        }
Пример #10
0
        private string GetGenderTitleEnglish(GenderTypes gender)
        {
            string start = "Dear mister ";

            if (gender == GenderTypes.FEMALE)
            {
                start = "Dear misses ";
            }
            else if (gender == GenderTypes.DIVERS)
            {
                start = "Dear ";
            }
            return(start);
        }
Пример #11
0
        /// <summary>
        /// Converts the given Gender to a Possessive Pronoun string
        /// </summary>
        /// <param name="type">The type of Gender</param>
        /// <returns>Returns a string representing the possessive pronoun</returns>
        public static string PossessivePronoun(this GenderTypes type)
        {
            switch (type)
            {
            case GenderTypes.Male:
                return("his");

            case GenderTypes.Female:
                return("hers");

            default:
                return("its");
            }
        }
Пример #12
0
        private string GetGenderTitle(GenderTypes gender)
        {
            string start = "Sehr geehrter Herr ";

            if (gender == GenderTypes.FEMALE)
            {
                start = "Sehr geehrte Frau ";
            }
            else if (gender == GenderTypes.DIVERS)
            {
                start = "Sehr geehrt ";
            }
            return(start);
        }
Пример #13
0
        /// <summary>
        /// Converts the given Gender to a Reflexive Pronoun string
        /// </summary>
        /// <param name="type">The type of Gender</param>
        /// <returns>Returns a string representing the reflexive pronoun</returns>
        public static string ReflexivePronoun(this GenderTypes type)
        {
            switch (type)
            {
            case GenderTypes.Male:
                return("himself");

            case GenderTypes.Female:
                return("herself");

            default:
                return("itself");
            }
        }
Пример #14
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            GenderTypes = await _context.GenderTypes.FirstOrDefaultAsync(m => m.Id == id);

            if (GenderTypes == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Пример #15
0
 public PatientAddedEvent(string id, string aggregateId, int version, string firstname, string lastname, string nationalIdentityNumber, DateTime createDateTime, DateTime updateDateTime, GenderTypes gender, DateTime birthDate, string logoUrl, string eidCardNumber, DateTime?eidCardValidity, PatientAddress address, ICollection <PatientContactInformation> contactInformations) : base(id, aggregateId, version)
 {
     Firstname = firstname;
     Lastname  = lastname;
     NationalIdentityNumber = nationalIdentityNumber;
     CreateDateTime         = createDateTime;
     UpdateDateTime         = updateDateTime;
     Gender              = gender;
     BirthDate           = birthDate;
     LogoUrl             = logoUrl;
     EidCardNumber       = eidCardNumber;
     EidCardValidity     = eidCardValidity;
     Address             = address;
     ContactInformations = contactInformations;
 }
Пример #16
0
        public async Task <IActionResult> OnGetAsync()
        {
            CountyList = await DataPortal.FetchAsync <Counties>();

            SchoolList = await DataPortal.FetchAsync <Schools>();

            StateList = await DataPortal.FetchAsync <States>();

            EthnicityList = await DataPortal.FetchAsync <RaceEthnicities>();

            Vulnerabilities = await DataPortal.FetchAsync <Vulnerabilities>();

            DispositionTypeList = await DataPortal.FetchAsync <DispositionTypes>();

            ReferralTypeList = await DataPortal.FetchAsync <ReferralTypes>();

            CaseTypeList = await DataPortal.FetchAsync <CaseTypes>();

            CaseStatusList = await DataPortal.FetchAsync <CaseStatusTypes>();

            GenderTypeList = await DataPortal.FetchAsync <GenderTypes>();

            LawEnforcementAgencies = await DataPortal.FetchAsync <mcmmodels.LawEnforcement>();

            foreach (var item in EthnicityList)
            {
                RaceEthnicityList.Add(
                    new RaceEthnicityItem {
                    Id = item.Id, Name = item.Name
                });
            }
            foreach (var item in Vulnerabilities)
            {
                VulnerabilityList.Add(
                    new VulnerabilityItem {
                    Id = item.Id, Name = item.Name
                });
            }
            for (int i = 0; i < 3; i++)
            {
                CaseLawEnforcementItemList.Add(
                    new CaseLawEnforcementItem {
                    AgencyId = 0, Denial = false
                });
            }

            return(Page());
        }
        /// <summary>
        /// Создает новый профиль
        /// </summary>
        /// <param name="name">ФИО пользователя</param>
        /// <param name="gender">Пол</param>
        /// <param name="birthdate">День рождения</param>
        public void Create(string name, GenderTypes gender, DateTime birthdate)
        {
            Profile profileEntity = new Profile();
            profileEntity.profileId = Guid.NewGuid();
            profileEntity.name = name;
            profileEntity.nameVisibility = (int)FieldVisibilityTypes.Everyone;
            profileEntity.gender = (int)gender;
            profileEntity.genderVisibility = (int)FieldVisibilityTypes.Everyone;
            profileEntity.birthdate = DateTime.Now;
            profileEntity.birthdateVisibility = (int)FieldVisibilityTypes.Everyone;
            profileEntity.avatar = "/Resources/Images/Avatars/noavatar.png";
            profileEntity.status = (int)ProfileTypes.Active;

            unitOfWork.RepositoryFor<Profile>().Add(profileEntity);
            unitOfWork.Commit();
        }
Пример #18
0
        /// <summary> </summary>
        /// <param name="favourGenderType"></param>
        public static void GetEssense(this BasicChar who, float amount, GenderTypes favourGenderType)
        {
            List <Genders> weightedList = new List <Genders>(allGenders);

            weightedList.AddRange(favourGenderType == GenderTypes.Feminine
                ? new List <Genders>()
            {
                Genders.Dickgirl, Genders.Female, Genders.Herm, Genders.Female
            }
                : new List <Genders>()
            {
                Genders.Cuntboy, Genders.Male, Genders.Male
            });
            Genders gender = weightedList[rnd.Next(weightedList.Count)];

            GenderSwitch(gender, amount, who);
        }
Пример #19
0
        public Person(string firstName,
                      string lastName,
                      GenderTypes gender,
                      string personalNumber,
                      DateTime birthDate
                      )
        {
            InitValidators();

            FirstName      = firstName;
            Gender         = gender;
            PersonalNumber = personalNumber;
            BirthDate      = birthDate;
            LastName       = lastName;

            _relatedPeople = new List <RelatedPerson>();
        }
Пример #20
0
        public async Task <IActionResult> OnPostAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            GenderTypes = await _context.GenderTypes.FindAsync(id);

            if (GenderTypes != null)
            {
                _context.GenderTypes.Remove(GenderTypes);
                await _context.SaveChangesAsync();
            }

            return(RedirectToPage("./Index"));
        }
        public static Assistant Create(string lastName, string firstName, GenderTypes gender)
        {
            Guard.ForNullOrEmpty(lastName, nameof(lastName));
            Guard.ForNullOrEmpty(lastName, nameof(firstName));
            Guard.ForInvalidEnum <GenderTypes>((int)gender);

            var assistant = new Assistant
            {
                Name = new Name {
                    First = firstName, Last = lastName
                },
                GenderType   = gender,
                Address      = new List <Location>(),
                EmailAddress = new List <EmailAddress>(),
                CreatedOnUtc = DateTime.UtcNow,
                UpdatedOnUtc = DateTime.UtcNow
            };

            return(assistant);
        }
Пример #22
0
        /// <summary>
        /// The object factory for a particular data collection instance.
        /// </summary>
        public virtual void CreateObjectsFromData(GenderTypes gendertypes, System.Data.SqlClient.SqlDataReader data)
        {
            // Do nothing if we have nothing
            if (data == null)
            {
                return;
            }


            // Create a local variable for the new instance.
            GenderType newobj = null;

            // Iterate through the data reader
            while (data.Read())
            {
                // Create a new object instance
                newobj = System.Activator.CreateInstance(gendertypes.ContainsType[0]) as GenderType;
                // Let the instance set its own members
                newobj.SetMembers(ref data);
                // Add the new object to the collection instance
                gendertypes.Add(newobj);
            }
        }
Пример #23
0
        public IActionResult GetProductsByGender(GenderTypes gender)
        {
            var products = _uow.ProductsRepository
                           .Items
                           .Where(p => p.Gender == gender)
                           .ToList();

            foreach (var product in products)
            {
                product.Sizes = _uow.SizeRepository.Items
                                .Where(s => s.ProductId == product.Id)
                                .Select(s => new Size
                {
                    Name      = s.Name,
                    ProductId = s.ProductId,
                    Id        = s.Id,
                    EU        = s.EU
                }).ToList();

                product.Images = _uow.ImagesRepository.Items.Where(img => img.ProductId == product.Id).Select(img => new Image
                {
                    Id        = img.Id,
                    Url       = img.Url,
                    ProductId = img.ProductId
                }).ToList();

                product.Category = _uow.CategoriesRepository.Items.Where(c => c.ProductId == product.Id).Select(c => new Category
                {
                    Name      = c.Name,
                    Id        = c.Id,
                    ProductId = c.ProductId
                }).FirstOrDefault();
            }


            return(Json(products));
        }
Пример #24
0
        public static PatientAggregate New(string id, string firstName, string lastName, string nationalIdentityNumber, GenderTypes gender, DateTime birthDate, string logoUrl, string eidCardNumber, DateTime?eidCardValidity, PatientAddress address, ICollection <PatientContactInformation> contactInformations)
        {
            var evt    = new PatientAddedEvent(Guid.NewGuid().ToString(), id, 0, firstName, lastName, nationalIdentityNumber, DateTime.UtcNow, DateTime.UtcNow, gender, birthDate, logoUrl, eidCardNumber, eidCardValidity, address, contactInformations);
            var result = new PatientAggregate();

            result.Handle(evt);
            result.DomainEvents.Add(evt);
            return(result);
        }
Пример #25
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            CaseEdit = await DataPortal.FetchAsync <CaseEdit>(id);

            if (CaseEdit == null)
            {
                return(NotFound());
            }

            Counties = await DataPortal.FetchAsync <Counties>();

            Schools = await DataPortal.FetchAsync <Schools>();

            States = await DataPortal.FetchAsync <States>();

            RaceEthnicities = await DataPortal.FetchAsync <RaceEthnicities>();

            Vulnerabilities = await DataPortal.FetchAsync <Vulnerabilities>();

            DispositionTypes = await DataPortal.FetchAsync <DispositionTypes>();

            ReferralType = await DataPortal.FetchAsync <ReferralTypes>();

            CaseTypes = await DataPortal.FetchAsync <CaseTypes>();

            CaseStatuses = await DataPortal.FetchAsync <CaseStatusTypes>();

            GenderTypes = await DataPortal.FetchAsync <GenderTypes>();

            LawEnforcementAgencies = await DataPortal.FetchAsync <mcmmodels.LawEnforcement>();

            foreach (var item in RaceEthnicities)
            {
                RaceEthnicityList.Add(
                    new RaceEthnicityItem {
                    Id = item.Id, Name = item.Name, IsChecked = CaseEdit.RaceEthnicityList.Count(_ => _ == item.Id) > 0
                });
            }
            foreach (var item in Vulnerabilities)
            {
                VulnerabilityList.Add(
                    new VulnerabilityItem {
                    Id = item.Id, Name = item.Name, IsChecked = CaseEdit.VulnerabilityList.Count(_ => _ == item.Id) > 0
                });
            }
            foreach (var item in CaseEdit.CaseLawEnforcementList)
            {
                CaseLawEnforcementItemList.Add(
                    new CaseLawEnforcementItem {
                    AgencyId = item.Key, Denial = item.Value
                });
            }
            for (int i = CaseEdit.CaseLawEnforcementList.Count; i < 3; i++)
            {
                CaseLawEnforcementItemList.Add(
                    new CaseLawEnforcementItem {
                    AgencyId = 0, Denial = false
                });
            }

            return(Page());
        }
 public Mentor(string name, int age, GenderTypes gender, LevelType level) : base(name, age, gender)
 {
     this.level = level;
 }
 public Student(string name, int age, GenderTypes gender, string previousOrganization) : base(name, age, gender)
 {
     this.previousOrganization = previousOrganization;
     skippedDays = 0;
 }
Пример #28
0
 public Person()
 {
     this.name   = "Jane Doe";
     this.age    = 30;
     this.gender = GenderTypes.female;
 }
Пример #29
0
 /*public string Name
  * {
  *  get { return name; }
  *  //private set{};
  * }
  * public int Age
  * {
  *  get { return age; }
  *  //private set {}
  * }
  * public genderTypes Gender { get; private set; }
  */
 public Person(string name, int age, GenderTypes gender)
 {
     this.name   = name;
     this.age    = age;
     this.gender = gender;
 }
Пример #30
0
        public IActionResult DoJoin(
            string userid, string passwd, string passwdRe, string name, string birthday, string phone1, string phone2, string phone3, bool isreceivephone,
            string email1, string email2, bool isreceiveemail, GenderTypes gender)
        {
            try
            {
                var accountType = AccountTypes.Idel;
                var userkey     = default(string);

                switch (HttpContext.Session.GetString("AccountType"))
                {
                case "Naver":
                {
                    accountType = AccountTypes.Naver;

                    var id = HttpContext.Session.GetString("Id");
                    userkey = $"naver_{id}";
                }
                break;

                case "Kakao":
                {
                    accountType = AccountTypes.Kakao;

                    var id = HttpContext.Session.GetString("Id");
                    userkey = $"kakao_{id}";
                }
                break;

                case "Facebook":
                {
                    accountType = AccountTypes.Facebook;

                    var id = HttpContext.Session.GetString("Id");
                    userkey = $"facebook_{id}";
                }
                break;

                case "Google":
                {
                    accountType = AccountTypes.Google;

                    var id = HttpContext.Session.GetString("Id");
                    userkey = $"google_{id}";
                }
                break;

                case "Idel":
                default:
                {
                    accountType = AccountTypes.Idel;
                    userkey     = Guid.NewGuid().ToString().ToLower().Replace("-", "");
                }
                break;
                }

                if (accountType == AccountTypes.Idel)
                {
                    if (string.IsNullOrWhiteSpace(userid))
                    {
                        throw new Exception("아이디를 입력하세요");
                    }
                    if (Regex.IsMatch(userid, "[^a-zA-Z0-9]"))
                    {
                        throw new Exception("아이디는 영문과 숫자만 가능합니다.");
                    }
                    if (userid.Length < 4)
                    {
                        throw new Exception("아이디는 최소 4자 이상 입력해야 합니다.");
                    }
                    if (this.Db.Users.Any(x => x.UserId == userid))
                    {
                        throw new Exception("이미 사용중인 아이디 입니다.");
                    }

                    if (string.IsNullOrWhiteSpace(passwd))
                    {
                        throw new Exception("비밀번호를 입력하세요");
                    }
                    if (passwd.Length < 4)
                    {
                        throw new Exception("비밀번호는 최소 4자 이상 입력해야 합니다.");
                    }
                    if (string.IsNullOrWhiteSpace(passwdRe))
                    {
                        throw new Exception("확인용 비밀번호를 입력하세요");
                    }
                    if (passwd != passwdRe)
                    {
                        throw new Exception("비밀번호가 확인용 비밀번호와 일치하지 않습니다.");
                    }
                }
                else
                {
                    var id = HttpContext.Session.GetString("Id");
                    userid = userkey;
                    passwd = userkey;
                }

                if (string.IsNullOrWhiteSpace(name))
                {
                    throw new Exception("이름을 입력하세요");
                }
                if (string.IsNullOrWhiteSpace(birthday))
                {
                    throw new Exception("생년월일을 입력하세요");
                }
                if (Regex.IsMatch(birthday, "[^0-9]"))
                {
                    throw new Exception("생년월일은 숫자만 6자리로 입력해주세요");
                }
                if (birthday.Length != 6)
                {
                    throw new Exception("생년월일은 YYMMDD 형태로 입력해주세요");
                }

                if (string.IsNullOrWhiteSpace(phone2) || string.IsNullOrWhiteSpace(phone3))
                {
                    throw new Exception("휴대폰 번호를 입력해주세요");
                }
                if (Regex.IsMatch(phone2, "[^0-9]") || Regex.IsMatch(phone3, "[^0-9]"))
                {
                    throw new Exception("휴대폰 번호는 숫자만 입력해주세요");
                }
                if (phone2.Length < 3 || phone2.Length > 4 || phone3.Length != 4)
                {
                    throw new Exception("휴대폰 번호를 다시 확인해 주세요");
                }

                if (string.IsNullOrWhiteSpace(email1) || string.IsNullOrWhiteSpace(email2))
                {
                    throw new Exception("이메일을 입력해 주세요");
                }

                var user = new Database.Tables.User
                {
                    AccountType    = accountType,
                    Birthday       = birthday,
                    CreateTime     = DateTime.Now,
                    Email          = $"{email1}@{email2}",
                    Gender         = gender,
                    IsReceiveEmail = isreceiveemail,
                    IsReceivePhone = isreceivephone,
                    Name           = name,
                    Passwd         = passwd,
                    Phone          = $"{phone1}-{phone2}-{phone3}",
                    UserId         = userid,
                    UserKey        = userkey
                };

                this.Db.Users.Add(user);

                this.Db.SaveChanges();

                HttpContext.Session.SetString("UserKey", user.UserKey);

                return(Json(new { status = true }));
            }
            catch (Exception ex)
            {
                return(Json(new { status = false, message = ex.Message }));
            }
        }
Пример #31
0
 public static string GetTitle(ClassTypes type, int level, GenderTypes gender)
 {
     return(TitleTable[(int)type, level, gender == GenderTypes.Female ? 1 : 0]);
 }
Пример #32
0
 /**
  * @param content
  *            Content ("male"/"female")
  * @param validSince
  *            `validSince` is a <code>DateTime</code> object, it's the first
  *            time Pipl's crawlers found this data on the page.
  */
 public Gender(GenderTypes? content = null, DateTime? validSince = null)
     : base(validSince)
 {
     this.Content = content;
 }
Пример #33
0
        public async Task <bool> CreateAndSendInvitationMail(string address, string preName, string name, string mailContent, GenderTypes gender, long eventid, long contactid, long organisationid, string uri)
        {
            string start           = GetGenderTitle(gender);
            string genderEn        = GetGenderTitleEnglish(gender);
            string finishedcontent = mailContent.Replace(NAMEFIELD, name).Replace(NAMEFIELDEN, name).Replace(STARTFIELD, start).Replace(PRENAMEFIELD, preName).Replace(PRENAMEFIELDEN, preName).Replace(STARTFIELDEN, genderEn);

            //Send Mail to Approve
#if DEBUG
            string buttonDe = "<p><a href = \"https://localhost:4200/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/2\"><button> Zusagen </button></a></p>" +
                              "<p><a href = \"https://localhost:4200/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/3\"><button> Absagen </button></a></p>";
            string buttonEn = "<p><a href = \"https://localhost:4200/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/2\"><button> Agree </button></a></p>" +
                              "<p><a href = \"https://localhost:4200/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/3\"><button> Cancel </button></a></p>";
#else
            string buttonDe = "<p><a href = \"https://ops085010.cs.ohmhs.de/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/2\"><button> Zusagen </button></a></p>" +
                              "<p><a href = \"https://ops085010.cs.ohmhs.de/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/3\"><button> Absagen </button></a></p>";
            string buttonEn = "<p><a href = \"https://ops085010.cs.ohmhs.de/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/2\"><button> Agree </button></a></p>" +
                              "<p><a href = \"https://ops085010.cs.ohmhs.de/EventAnswer/" + eventid + "/" + contactid + "/" + organisationid + "/3\"><button> Cancel </button></a></p>";
#endif

            finishedcontent = finishedcontent.Replace(EVENTBUTTONFIELD_DE, buttonDe).Replace(EVENTBUTTONFIELD_EN, buttonEn);

            return(await SendFormattedMail("Einladung zur Veranstaltung / Invitation to the event", finishedcontent, address, null, null));
        }