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
[HttpGet("{id}")] | |
public async Task<ActionResult<TodoItem>> GetTodoItem(long id) | |
{ | |
var todoItem = await _context.TodoItems.FindAsync(id); | |
if (todoItem == null) | |
{ | |
return NotFound(); | |
} |
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
[Test, Explicit] | |
public async Task Debit() | |
{ | |
var request = new Debit | |
{ | |
Currency = "EUR", | |
SuccessUrl = "www.domain.si/successURL", | |
ErrorUrl = "www.domain.si/errorURL", | |
CancelUrl = "www.domain.si/cancelURL", | |
CallbackUrl = "www.domain.si/callbackURL", |
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
<ul class="pagination"> | |
@for(var i = 1; i <= totalPages; i++) | |
{ | |
<li class="page-item @(i == pageNumber ? "active" : "")"> | |
<a href="@linkUrl/@i" class="page-link">@i</a> | |
</li> | |
} | |
</ul> | |
@code { | |
[Parameter] int pageNumber { 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
using System; | |
using FlubuCore.Context; | |
using FlubuCore.Context.Attributes.BuildProperties; | |
using FlubuCore.IO; | |
using FlubuCore.Scripting; | |
using FlubuCore.Tasks.Attributes; | |
using FlubuCore.Tasks.Versioning; | |
// 注意:需要 FlubuCore v5.0.1 或更新的版本。 | |
namespace _Build |
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
using System; | |
using FlubuCore.Context; | |
using FlubuCore.Context.Attributes.BuildProperties; | |
using FlubuCore.IO; | |
using FlubuCore.Scripting; | |
using FlubuCore.Tasks.Attributes; | |
using FlubuCore.Tasks.Versioning; | |
// 注意:需要 FlubuCore v5.0.1 或更新的版本。 | |
namespace _Build |
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
using FlubuCore.Context; | |
using FlubuCore.Scripting; | |
namespace FlubuCore | |
{ | |
/// <summary> | |
/// Build script template. | |
/// </summary> | |
public class BuildScript : DefaultBuildScript | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Text; | |
using FlubuCore.Tasks.Process; | |
namespace FlubuCore.Tests.Tasks | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using FlubuCore.Tasks.Process; | |
namespace FlubuCore.Tests.Tasks | |
{ | |
public class ExampleTask : ExternalProcessTaskBase<int, ExampleTask> | |
{ | |
protected override string Description { get; set; } |