public static object Modificar_MetodoPago(Metodos_Pago record) { try { using (var DB = new TPVDBEntities()) { DB.Metodos_Pago.Attach(record); var entry = DB.Entry(record); entry.Property(p => p.Metodo_Pago).IsModified = true; DB.SaveChanges(); } return(new { Result = "OK", Record = record }); } catch { return(new { Result = "ERROR", Message = "OcurriĆ³ un inconveniente al momento de actualizar el area." }); } }