public PagosRegisterViewModel GetPago_Profile(String Id, Guid Idaccount) { var model = new PagosRegisterViewModel(); List <PagosEntidad> equipmentsmodel = new List <PagosEntidad>(); equipmentsmodel = _pagosDao.GetPagosProfile(Id); model.pagosEntidads = equipmentsmodel; if (_branchDao.GetOneCode(Id, Idaccount) != null) { model.Branches = _branchDao.GetOneCode(Id, Idaccount); } return(model); }