public ActionResult Getuser(int qId)
        {
            List <SelectListItem> userItems = new List <SelectListItem>();

            try
            {
                TblUser sessionUser = (TblUser)Session["UserSession"];

                var Users = userRepository.GetAllUsers(sessionUser.TenantId);

                foreach (var user in Users)
                {
                    userItems.Add(new SelectListItem
                    {
                        Text  = Convert.ToString(user.FirstName + " " + user.LastName),
                        Value = Convert.ToString(user.UserId)
                    });
                }

                DataSet ds = quizRepository.GetAssignedQuizUsers(qId);
                if (ds != null)
                {
                    if (ds.Tables.Count > 0)
                    {
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            foreach (var item in userItems)
                            {
                                DataRow[] foundUsers = ds.Tables[0].Select("UserId = " + item.Value + "");
                                if (foundUsers.Length != 0)
                                {
                                    item.Selected = true;
                                }
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                newException.AddException(ex);
            }
            return(Json(userItems, JsonRequestBehavior.AllowGet));
        }