public string updateRecord(int serviceId) { using (ChatServerModelContainer context = new ChatServerModelContainer()) { // "id" is the id in your table (parameter passed) Notifications jnr = context.Notifications.Where(n => n.ServiceId.Equals(serviceId)).FirstOrDefault(); jnr.Status = "Sent"; context.Entry(jnr).State = EntityState.Modified; context.SaveChanges(); return("Sent"); } }