/// <summary> /// Returns all synonyms for a user by id as a /// List of UserSynonym /// </summary> /// <param name="userId"></param> /// <returns>List of BlissBase.Model.UserSynonym or null</returns> public List<UserSynonym> GetSynonymForUser(int userId) { var uList = FindUser(userId); UserSynonymDAL uSynDal = new UserSynonymDAL(); List<UserSynonym> uSynList = uSynDal.GetSynonymForUser(uList); return uSynList.Count == 0 ? null : uSynList; }
public List<UserSynonym> GetSynonymForUser(UserSynonymList user) { var UserSynonymDAL = new UserSynonymDAL(testing); return UserSynonymDAL.GetSynonymForUser(user); }