async Task IDataInjector.UpdateComunicacionDos(Ekilibrate.Model.Entity.Participante.clsComunicacionDosBase Data) { using (var scope = Ekilibrate.Data.Access.Common.ContainerConfig.ProxyContainer.BeginLifetimeScope("a")) { try { var objController = new Ekilibrate.BL.Controller.Participante.clsComunicacionDos(scope); await objController.Update(Data); var DBContext = scope.Resolve <DBTrnContext>(); DBContext.CommitTransaction(); } catch (FaultException ex) { throw ex; } catch (Exception ex) { var objController = new Ekilibrate.BL.Common.clsLog(scope); objController.GuardarLog(ex); throw new FaultException("Error al actualizar datos de la comunicacion."); } } }
//COMUNICACIONDOS async Task <Int32> IDataInjector.CreateComunicacionDos(Ekilibrate.Model.Entity.Participante.clsComunicacionDosBase Data) { using (var scope = Ekilibrate.Data.Access.Common.ContainerConfig.ProxyContainer.BeginLifetimeScope("a")) { try { var objController = new Ekilibrate.BL.Controller.Participante.clsComunicacionDos(scope); var result = await objController.Create(Data); var DBContext = scope.Resolve <DBTrnContext>(); DBContext.CommitTransaction(); return(result); } catch (FaultException ex) { throw ex; } catch (Exception) { throw new FaultException("Error al registrar los datos de la comunicacion."); } } }
async Task IDataInjector.DeleteComunicacionDos(int ID_PARTICIPANTE) { using (var scope = Ekilibrate.Data.Access.Common.ContainerConfig.ProxyContainer.BeginLifetimeScope("a")) { try { var objController = new Ekilibrate.BL.Controller.Participante.clsComunicacionDos(scope); await objController.Delete(ID_PARTICIPANTE); var DBContext = scope.Resolve <DBTrnContext>(); DBContext.CommitTransaction(); } catch (FaultException ex) { throw ex; } catch (Exception ex) { var objController = new Ekilibrate.BL.Common.clsLog(scope); objController.GuardarLog(ex); throw new FaultException("Error al eliminar la comunicacion."); } } }