public IEnumerable <UserViewModel> GetProgramOwners() { IEnumerable <UserView> userList = projectRepository.GetProgramOwners(); if (userList != null) { return(ApplicationMapper.MapUserViewList(userList)); } return(null); }
//[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); }