Exemplo n.º 1
0
        public IList <IDetailedInfo> GetUserDetails(User user, IList <RoleType> userRoles)
        {
            var userDetails = new List <IDetailedInfo>();

            if (userRoles.Contains(RoleType.HR))
            {
                var hrDetails = _hrMapper.ToDetailedHRInfo(user.Contacts, HRDetailsViewName);

                userDetails.Add(hrDetails);
            }

            return(userDetails);
        }
 private DetailedHRInfo GetHRDetails(User user)
 {
     return(_hrMapper.ToDetailedHRInfo(user.Contacts, HRDetailsViewName));
 }