public bool Edit(Cetificate o) { try { _log.LogInformation("BEGIN => Edit"); _context.Update(o); _context.SaveChanges(); _log.LogInformation("END <= Edit"); return(true); } catch (Exception e) { _log.LogError("ERROR => Edit : [%s]", e); return(false); } }
public bool Add(Cetificate o) { try { _log.LogInformation("BEGIN => Add"); _context.Cetificates.Add(o); _context.SaveChanges(); _log.LogInformation("END <= Add"); return(true); } catch (Exception e) { _log.LogError("ERROR <= Add : [%s]", e); return(false); } }