public ActionResult <AffiliateViewModel> GetAffiliate(int id) { var affiliate = _affiiliateService.Get(id); if (affiliate is null) { return(NotFound()); } return(AffiliateMapper.DTOtoAffiliateVM(affiliate)); }
public ActionResult <AffiliateViewModel> GetAffiliate(int id) { var affiliate = _affiiliateService.Get(id); if (affiliate is null) { return(NotFound()); } return(AffiliateMapper.DTOtoAffiliateVM(affiliate)); }