Exemplo n.º 1
0
 public Channel(string name, string category, ChatLog chat)
 {
     this.Name = name;
     this.Category = category;
     this.Users = new List<User>();
     this.Tickets = new List<Ticket>();
     this.Chat = chat;
 }
Exemplo n.º 2
0
 public IHttpActionResult Post(ChatLog chatLog)
 {
     Context.ChatLogs.Add(chatLog);
     Context.SaveChanges();
     return Created(this.Request.RequestUri.AbsolutePath + "/" + chatLog.Id, chatLog);
 }