Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created May 11, 2018 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/80f7ec8936dffe10b5259ac6b4b636f9 to your computer and use it in GitHub Desktop.
Save icebeam7/80f7ec8936dffe10b5259ac6b4b636f9 to your computer and use it in GitHub Desktop.
SistemaEscolar: IServicioBaseDatos.cs
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SistemaEscolar.Servicios
{
public interface IServicioBaseDatos<T> where T : class
{
Task<List<T>> ObtenerTabla();
Task<T> BuscarPorId(int id);
Task<T> Agregar(T dato);
Task<T> Actualizar(T dato);
Task<bool> Eliminar(int dato);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment