public IHttpActionResult Update(employee emp) { db.Entry(emp).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(Ok()); }