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