Exemplo n.º 1
0
        public string DateAssembler(int IDDate)
        {
            KarmaDBEntities db         = new KarmaDBEntities();
            var             DBDates    = db.raiddatetable.Where(t => t.idRaidDateTable == IDDate).First();
            string          DateString = "";
            var             DTvar      = DBDates.RaidDate ?? DateTime.Now;

            DateString = DTvar.ToString("MM.dd.yyyy");
            return(DateString);
        }
Exemplo n.º 2
0
        public string CharAssembler(string IDPlayer)
        {
            KarmaDBEntities db = new KarmaDBEntities();
            var             DBRosterCharNames = db.chartable.Where(t => t.idplayer == IDPlayer);
            string          CharacterString   = "";

            foreach (var Character in DBRosterCharNames)
            {
                CharacterString = CharacterString + Character.charname + "(" + Character.char_class + "/" + Character.char_role + "),";
            }
            CharacterString = CharacterString.Substring(0, (CharacterString.Length - 1));
            return(CharacterString);
        }