Пример #1
0
        public ActionResult SaveManSong(Manjiusong m, List <int> userType, string areaNums)
        {
            Guid managerId = (Guid)ViewBag.ManagerId;
            var  areaList  = areaNums.Split(',').ToList();
            var  loginUser = (UserInfo)ViewBag.User;

            m.Id           = Guid.NewGuid();
            m.CreateTime   = DateTime.Now;
            m.CreateUserId = managerId;
            string userTypes = "";

            userType.ForEach(x =>
            {
                userTypes += x;
                userTypes += ",";
            });
            m.UserTypes = userTypes;
            _active.CreateManjiusong(m, areaList);
            Response.Redirect("GetManSongList");
            return(View());
        }