Skip to content

Instantly share code, notes, and snippets.

@MBehtemam
Created December 1, 2018 04:03
Show Gist options
  • Save MBehtemam/a8c66e8f5bb99b76f2040d60432064e5 to your computer and use it in GitHub Desktop.
Save MBehtemam/a8c66e8f5bb99b76f2040d60432064e5 to your computer and use it in GitHub Desktop.
ITodo Repository
using System;
using TodoAPI.Models;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace TodoAPI.Data
{
public interface ITodoRepository
{
Task<Todo> GetTodoById(int id);
Task<List<Todo>> GetTodos();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment