public static bool Mofidicar(Entidades.EmpleadosRetenciones existente) { bool eliminado = false; using (var repositorio = new Repositorio <Entidades.EmpleadosRetenciones>()) { eliminado = repositorio.Modificar(existente); } return(eliminado); }
public static bool Guardar(Entidades.EmpleadosRetenciones relacion) { using (var conec = new DAL.Respository <Entidades.EmpleadosRetenciones>()) { try { return(conec.Guardar(relacion)); } catch (Exception) { throw; } } return(false); }
public static bool Guardar(Entidades.EmpleadosRetenciones relacion) { bool resultado = false; using (var conexion = new ParcialDb()) { try { conexion.EmpleadosDecuentosDb.Add(relacion); conexion.SaveChanges(); resultado = true; } catch (Exception) { throw; } } return(resultado); }