public ActionResult SaveDiscount(DiscountInfo m, List <int> userType, string areaNums) { var areaList = areaNums.Split(',').ToList(); var loginUser = (UserInfo)ViewBag.User; m.UpdateTime = DateTime.Now; m.UpdateUserId = loginUser.UserId; m.UpdateUserName = loginUser.UserName; string userTypes = ""; userType.ForEach(x => { userTypes += x; userTypes += ","; }); m.UserTypes = userTypes; _active.AddDiscountInfo(m, areaList); Response.Redirect("DiscountList"); return(View()); }