Beispiel #1
0
        public IHttpActionResult ChangeDescription(ChangeGroupDescriptionModel m)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            GroupManager.ChangeDescription(User.Identity.GetUserId(), m.GroupId, m.NewDescription);
            PiChatHub.SendChangeGroupDescriptionNotification(m.GroupId, m.NewDescription);
            return(Ok());
        }