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