public async Task <int> CrearLogException(string Mensaje) { try { var modelo = new LogExceptions { Mensaje = Mensaje, Fecha = DateTime.Now }; using (EVERTECEntities _modelo = new EVERTECEntities()) { _modelo.LogExceptions.Add(modelo); await _modelo.SaveChangesAsync(); return(modelo.LogExceptionID); } } catch (Exception) { throw; } }
public EFBase() { _modelo = new EVERTECEntities(); }
public CRUDGenerico(EVERTECEntities context) { _context = context; }