Ejemplo n.º 1
0
 public bool Delete(ErrorLogLocal entity)
 {
   
         _ctx.ErrorLogLocals.Remove(entity);
         _ctx.SaveChanges();
     return true;
 }
Ejemplo n.º 2
0
        public void Save(string module, string error)
        {



            ErrorLogLocal existing = new ErrorLogLocal();
            existing.Id = Guid.NewGuid();
            _ctx.ErrorLogLocals.Add(existing);
            existing.Error = error;
            existing.ActionTimeStamp = DateTime.Now;
            existing.Module = module;

            _ctx.SaveChanges();

        }