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; }
public IHttpActionResult Post(ChatLog chatLog) { Context.ChatLogs.Add(chatLog); Context.SaveChanges(); return Created(this.Request.RequestUri.AbsolutePath + "/" + chatLog.Id, chatLog); }