// POST api/voicechat
 public HttpResponseMessage Post(VoiceChat item)
 {
     var response = Request.CreateResponse(HttpStatusCode.Created, item);
     response.Headers.Location = new Uri(Request.RequestUri, string.Format("api/voicechat/{0}", item.VoiceChatId));
     _repository.Add(item);
     return response;
 }
 public VoiceChat Update(VoiceChat item)
 {
     _db.Entry(item).State = EntityState.Modified;
     _db.SaveChanges();
     return item;
 }
 public VoiceChat Add(VoiceChat item)
 {
     _db.VoiceChats.Add(item);
     _db.SaveChanges();
     return item;
 }
 // PUT api/voicechat/5
 public void Put(VoiceChat item)
 {
     _repository.Update(item);
 }