public List <String> Hobbies([FromBody] UserHobbies hobby)

        {
            FRDBEntities db = new FRDBEntities();

            return(db.GetUserHobbies(hobby.email).ToList <String>());
        }
        public List <String> Hobbies([FromBody] CustomModels hobby)

        {
            FRDBEntities db = new FRDBEntities();

            using (db)
            {
                return(db.GetUserHobbies(hobby.email).ToList <String>());
            }
        }
        public List <GetAllHobby_Result> hobbies([FromBody] UserSkills skill)

        {
            List <GetAllHobby_Result> temp      = new List <GetAllHobby_Result>();
            List <GetAllHobby_Result> result    = new List <GetAllHobby_Result>();
            List <string>             checkList = new List <string>();
            FRDBEntities db = new FRDBEntities();

            using (db)
            {
                checkList = db.GetUserHobbies(skill.email).ToList <string>();

                temp = db.GetAllHobby().ToList <GetAllHobby_Result>();
                foreach (GetAllHobby_Result obj in temp)
                {
                    if (!(checkList.Any(x => x == obj.name)))
                    {
                        result.Add(obj);
                    }
                }
            }
            return(result);
        }