public int GetEliminaCMTS(int IdCMTS) { if (WebOperationContext.Current.IncomingRequest.Method == "OPTIONS") { return(0); } else { try { return(Administracion.GetEliminaCMTS(IdCMTS)); } catch (Exception ex) { throw new WebFaultException <string>(ex.Message, HttpStatusCode.ExpectationFailed); } } }