private List<VwSolutionsModel> GetMyAns(List<VwSolutionsModel> solns) { user = (Users)Session["User"]; if (ModelState.IsValid) { string strSQL = string.Empty; strSQL = "SELECT * FROM VwSolutions WHERE RepliedUser = " + user.UserId; ConnManager connManager = new ConnManager(); solns = connManager.GetSolns(strSQL); } return solns; }