public ActionResult <IEnumerable <AffiliateViewModel> > GetAffiliates()
 {
     return(_affiiliateService.GetAll().Select(a => AffiliateMapper.DTOtoAffiliateVM(a)).ToArray());
 }