Ejemplo n.º 1
0
        public IEnumerable <UserViewModel> GetProgramOwners()
        {
            IEnumerable <UserView> userList = projectRepository.GetProgramOwners();

            if (userList != null)
            {
                return(ApplicationMapper.MapUserViewList(userList));
            }
            return(null);
        }
Ejemplo n.º 2
0
        //[EnableCors("ori, ori2", "headers,...", "GET")]
        public IEnumerable <UserViewModel> SearchUsers(SearchUserModel search)
        {
            // Mapp to backend model
            IEnumerable <UserView>      users  = projectRepository.SearchUsers(search.Text);
            IEnumerable <UserViewModel> models = null;

            if (users != null)
            {
                models = ApplicationMapper.MapUserViewList(users);
            }
            return(models);
        }