示例#1
0
        public void InsertAction(RoleActionVM Roleaction, int[] actions)
        {
            db.spRoleActionInsert(
                Roleaction.RoleId,
                Roleaction.RoleName,
                Roleaction.IsActive,
                Roleaction.CreatedBy = 1,                          //(int)HttpContext.Current.Session["userid"],
                Roleaction.ModifiedBy,
                Roleaction.CreatedDate = DateTime.Now,
                Roleaction.ModifiedDate,
                string.Join(",", actions)
                );

            db.SaveChanges();
        }