|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using BookStore.DAL.Abstract; |
| 5 | +using BookStore.DLL.Abstract; |
| 6 | +using BookStore.DO.Entities; |
| 7 | +using Ninject; |
| 8 | + |
| 9 | +namespace BookStore.BLL.RepositoryService |
| 10 | +{ |
| 11 | + public class UserService:StoreService<User>,IUserService |
| 12 | + { |
| 13 | + [Inject] readonly IUserRepository _repository; |
| 14 | + public UserService(IUserRepository repo) |
| 15 | + { |
| 16 | + _repository = repo; |
| 17 | + } |
| 18 | + |
| 19 | + public IQueryable<Book> GetReccomendedBooks(int userId) |
| 20 | + { |
| 21 | + throw new NotImplementedException(); |
| 22 | + } |
| 23 | + |
| 24 | + public IQueryable<Book> GetWishedBooks(int userId) |
| 25 | + { |
| 26 | + throw new NotImplementedException(); |
| 27 | + } |
| 28 | + |
| 29 | + public IQueryable<Book> GetRatedBooks(int userId) |
| 30 | + { |
| 31 | + throw new NotImplementedException(); |
| 32 | + } |
| 33 | + |
| 34 | + public IQueryable<Author> GetFavAuthors(int userId) |
| 35 | + { |
| 36 | + throw new NotImplementedException(); |
| 37 | + } |
| 38 | + |
| 39 | + public ICollection<Role> GetRoles(int userId) |
| 40 | + { |
| 41 | + return _repository.GetRoles(userId); |
| 42 | + } |
| 43 | + |
| 44 | + public IQueryable<Comment> GetComment(int userId) |
| 45 | + { |
| 46 | + throw new NotImplementedException(); |
| 47 | + } |
| 48 | + |
| 49 | + public void RateBook(Book book) |
| 50 | + { |
| 51 | + throw new NotImplementedException(); |
| 52 | + } |
| 53 | + |
| 54 | + public void WishBook(Book book) |
| 55 | + { |
| 56 | + throw new NotImplementedException(); |
| 57 | + } |
| 58 | + |
| 59 | + public void AddComment(Book book) |
| 60 | + { |
| 61 | + throw new NotImplementedException(); |
| 62 | + } |
| 63 | + |
| 64 | + public void LikeAuthor(Author author) |
| 65 | + { |
| 66 | + throw new NotImplementedException(); |
| 67 | + } |
| 68 | + |
| 69 | + |
| 70 | + public User GetUserByEmail(string email) |
| 71 | + { |
| 72 | + return _repository.GetUserByEmail(email); |
| 73 | + } |
| 74 | + |
| 75 | + public override void Create(User obj) |
| 76 | + { |
| 77 | + _repository.Create(obj) ; |
| 78 | + } |
| 79 | + } |
| 80 | +} |
0 commit comments