Ejemplo n.º 1
0
        public IActionResult Profile(Guid idBranch)
        {
            var branch   = _branchBusiness.GetBranchCompleteProfile(idBranch, ApplicationUserCurrent.AccountId);
            var smslista = _smsBusiness.GetCampaignByIdSms(ApplicationUserCurrent.AccountId);

            branch.BranchImages = _branchImageBusiness.GetBranchesImagesList(branch.Id, ApplicationUserCurrent.AccountId);

            var itemReturn = ConvertBranch.ConvertBranchToBranchProfileViewModel(branch, smslista);

            return(View(itemReturn));
        }
Ejemplo n.º 2
0
 public List <BranchImages> GetBranchImagesList(Guid branchId)
 {
     try
     {
         var resultList = _branchImageBusiness.GetBranchesImagesList(branchId, ApplicationUserCurrent.AccountId);
         return(resultList);
     }
     catch (Exception e)
     {
         _logger.LogError(new EventId(0, "Error Index"), e.Message);
         return(null);
     }
 }