Exemplo n.º 1
0
        /// <summary>
        /// Export user groups
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        public ActionResult ExportsUserGroupsOfUser(JqSearchIn si, GridExportMode gridExportMode, int userId)
        {
            var workbook = _userGroupService.ExportsUserGroupsOfUser(si, gridExportMode, userId);

            var output = new MemoryStream();

            workbook.Write(output);

            return(File(output.ToArray(), "application/vnd.ms-excel", "UserGroups.xls"));
        }