示例#1
0
        protected void btnDownloadTemplate_Click(object sender, EventArgs e)
        {
            var bytes            = new UserTemplateService().GetTemplateFile <UserDto>(SelectedSiteID);
            var templateFileName = "users-upload-template.xlsx";

            WriteFileToResponse(templateFileName, bytes);
        }
示例#2
0
 public RedmineController(RedmineClient client, UserTemplateService userTemplateService)
 {
     _client = client;
     _userTemplateService = userTemplateService;
 }