public void GetAllMembers()
        {
            FamilyCrudService family       = new FamilyCrudService();
            List <UserData>   familymember = family.GetAllMembers(3704290);

            Assert.IsNotNull(familymember);
        }
        public ActionResult getFamily(UserModel userDetails)
        {
            var user = UserModel.FromDomain(userCrud.GetUserByPhone(userDetails.Phone));

            if (user != null)
            {
                return(Ok(familyCrud.GetAllMembers(user.FamilyId).ToList()));
            }
            else
            {
                return(BadRequest("The user does not exist"));
            }
        }