Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public RedmineController(RedmineClient client, UserTemplateService userTemplateService)
 {
     _client = client;
     _userTemplateService = userTemplateService;
 }