public List <MissingModelBaseImage> GetBaseImages <T>() where T : MissingModel
 {
     if (typeof(T) == typeof(Person))
     {
         return(TakeBaseImages(_personRepository.GetAll().ToList()));
     }
     else
     {
         return(TakeBaseImages(_plateRepository.GetAll().ToList()));
     }
 }
Exemple #2
0
 public List <Plate> GetAllMissingPlates()
 {
     return(new List <Plate>(_plateRepository.GetAll()));
 }
Exemple #3
0
 public IEnumerable GetAll()
 {
     return(_repository.GetAll());
 }
        public IActionResult GetPlates()
        {
            var plates = _plateRepository.GetAll();

            return(Ok(plates));
        }