public RespuestaBD AgregarPocoFrecuente(NuevoPocoFrecuente nuevoPocoFrecuente) { using (InoBD db = new InoBD()) { PocoFrecuente pocoFrecuente = Mapper.Map <PocoFrecuente>(nuevoPocoFrecuente); db.PocoFrecuente.Add(pocoFrecuente); db.SaveChanges(); //Mensaje de respuesta respuesta.Id = pocoFrecuente.IdPocoFrecuente; respuesta.Mensaje = "Se ingresó los datos correctamente."; // Auditoria AuditoriaGeneral auditoria = new AuditoriaGeneral { Accion = "Agregar", NombreTabla = "PocoFrecuente", ValoresAntiguos = null, ValoresNuevos = JsonConvert.SerializeObject(nuevoPocoFrecuente), IdUsuario = nuevoPocoFrecuente.IdUsuarioCreacion }; this._gestorDeAuditoria.AgregarAuditoria(auditoria); return(respuesta); } }
public RespuestaBD AgregarPocoFrecuente(NuevoPocoFrecuente nuevoPocoFrecuente) { return(_gestorDeProcesoAnalitico.AgregarPocoFrecuente(nuevoPocoFrecuente)); }