public FooterViewModel GetFooter() { return(Mapper.Map <Footer, FooterViewModel>(_footerRepository.FindSingle(x => x.Id == CommonConstants.DefaultFooterId))); }
public async Task <FooterViewModel> GetFooter() { return(new FooterViewModel().Map(await _footerRepository.FindSingle(x => x.Id == CommonConstants.DefaultFooterId))); }