<repo_name>ck4957/.NET-Projects<file_sep>/LibrarySystem/OnlyBook/Repository/IAuthorRepository.cs
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OnlyBook.Models;

namespace OnlyBook.Repository
{
    public interface IAuthorRepository
    {
        Author Add(Author author);
        IEnumerable<Author> GetAll();
        Author GetById(int id);
        Author GetByName(string authorName);
        void Delete(Author author);
        void Update(Author author);
        void AddBooktoAuthor(Author author);
    }
}
<file_sep>/LibrarySystem/OnlyBook/Repository/ILibraryRepository.cs
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OnlyBook.Models;

namespace OnlyBook.Repository
{
    public interface ILibraryRepository
    {
        Library Add(Library library);
        IEnumerable<Library> GetAll();
        Library GetById(int id);
        void Delete(Library library);
        void Update(Library library);
    }
}
<file_sep>/LibrarySystem/OnlyBook/Repository/IPatronRepository.cs
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OnlyBook.Models;

namespace OnlyBook.Repository
{
    public interface IPatronRepository
    {
        Patron Add(Patron patron);
        IEnumerable<Patron> GetAll();
        Patron GetById(int id);
        void Delete(Patron patron);
        void Update(Patron patron);
        void Checkout(int patronid, int bookid);
        void BookReturn(int patronid, int bookid);
    }
}
