public async Task <IEnumerable <Administrator> > List() { return(await _administratorRepository.List()); }
public List <Administrator> getAllAdmins() { AdministratorRepository adminManagerObj = new AdministratorRepository(); return(Mapper.Map <List <Administrator> >(adminManagerObj.List())); }