public List<sp_SearchUsersByIdResult> getUserDetailsById(string userId) { List<sp_SearchUsersByIdResult> myList = new List<sp_SearchUsersByIdResult>(); UserDetailsDataContext obj = new UserDetailsDataContext(); return obj.sp_SearchUsersById(new Guid(userId)).ToList(); }
public List<sp_SearchUsersByIdResult> getDocById(Guid userId) { List<sp_SearchUsersResult> myList = new List<sp_SearchUsersResult>(); UserDetailsDataContext obj = new UserDetailsDataContext(); return obj.sp_SearchUsersById(userId).ToList(); }