public Response <List <FooterViewModel> > GetAllFooters() { try { var data = _footerRepository.GetAllFooters(); if (data != null && data.Any()) { return(new Response <List <FooterViewModel> >(true, "Success", data)); } return(new Response <List <FooterViewModel> >(false, "Fail", null)); } catch (Exception e) { _logger.Error($"GetAllFooters Failed: {e.Message}\n {e.StackTrace}"); return(new Response <List <FooterViewModel> >(false, e.Message, null)); } }