Exemplo n.º 1
0
        public bool PutOrganizer(long id, OrganizerPost organizerPost)
        {
            var user = GetOrganizer(id);

            if (user == null)
            {
                return(false);
            }

            return(new NutzerModel().PutUser(id, organizerPost.ToUserPost()));
        }
Exemplo n.º 2
0
        public long PostOrganizer(OrganizerPost organizerPost)
        {
            var id = new NutzerModel().PostUser(organizerPost.ToUserPost());

            if (id == -1)
            {
                return(-1);
            }

            var d = organizerPost.ToDictionary();

            d.Add("Autorisiert", "0");
            d.Add("id", id.ToString());

            var result = DatabaseManager.ExecutePost("Veranstalter", d);



            return(result);
        }