Esempio n. 1
0
 public bool Delete(ErrorLogLocal entity)
 {
   
         _ctx.ErrorLogLocals.Remove(entity);
         _ctx.SaveChanges();
     return true;
 }
Esempio 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();

        }