This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<ActionResult> GeneratePayment() | |
{ | |
string fileName = "Book.pdf"; | |
try | |
{ | |
if (!string.IsNullOrEmpty(fileName)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ViewModel | |
public class RegisterViewModel | |
{ | |
public string UserType { get; set; } | |
public SelectList Groups { get; set; } | |
public IEnumerable<string> SelectedGroups { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ViewModel | |
public class RegisterViewModel | |
{ | |
public RegisterViewModel() | |
{ | |
ActionsList = new List<SelectListItem>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnSaveWord_Click(object sender, EventArgs e) | |
{ | |
SaveFileDialog sfd = new SaveFileDialog(); | |
DialogResult messageResult = MessageBox.Show("Save this file into Doc?", "Doc File", MessageBoxButtons.OKCancel); | |
if (messageResult == DialogResult.Cancel) | |
{ | |
MessageBox.Show("Operation Canceled By User", "Doc File"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnSavePDF_Click(object sender, EventArgs e) | |
{ | |
SaveFileDialog sfd = new SaveFileDialog(); | |
DialogResult messageResult = MessageBox.Show("Save this file into PDF?", "PDF File", MessageBoxButtons.OKCancel); | |
if (messageResult == DialogResult.Cancel) | |
{ | |
MessageBox.Show("Operation Canceled By User", "PDF File"); | |
} |