public Category Get(int id)
 {
     if (repasitory.GetAll().Where(c => c.Id == id).ToList().Count != 0)
     {
         return(repasitory.Get(id));
     }
     return(null);
 }
 public Author Get(int id)
 {
     if (repasitory.GetAll().Where(a => a.Id == id).ToList().Count != 0)
     {
         return(repasitory.Get(id));
     }
     return(null);
 }
 public Book Get(int id)
 {
     if (repasitory.GetAll().Where(b => b.Id == id).ToList().Count != 0)
     {
         return(repasitory.Get(id));
     }
     return(null);
 }
Пример #4
0
 public Publications Get(int id)
 {
     if (repasitory.GetAll().Where(p => p.Id == id).ToList().Count != 0)
     {
         return(repasitory.Get(id));
     }
     return(null);
 }