Skip to content

Commit 0f1fa6f

Browse files
committed
cleanup
1 parent 3731a8e commit 0f1fa6f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/dotnet.yml .github/workflows/dotnet-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a .NET project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33

4-
name: .NET
4+
name: .NET CI
55

66
on:
77
push:

JixMinApi/Features/Todo/Commands/CreateTodoCommand.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public async Task<Result<TodoDto>> Handle(CreateTodoCommand request, Cancellatio
1616
{
1717
// add validation then set Result.ValidationErrors
1818

19-
var todo = new Todo() {
19+
var todo = new Todo()
20+
{
2021
Name = request.input.Name,
2122
IsComplete = request.input.IsComplete,
2223
DateCreated = DateTimeOffset.UtcNow,

JixMinApi/Features/Todo/TodoEndpoints.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using JixMinApi.Features.Todo.Commands;
22
using JixMinApi.Features.Todo.Queries;
3-
using JixMinApi.Shared;
43
using MediatR;
54
using Microsoft.AspNetCore.Http.HttpResults;
65
using Microsoft.EntityFrameworkCore;
@@ -28,7 +27,7 @@ public static async Task<Ok<TodoDto[]>> GetAllTodos(IMediator mediator)
2827
return TypedResults.Ok(todos?.ToArray());
2928
}
3029

31-
public static async Task<Results<Created<TodoDto>, BadRequest> > CreateTodo(TodoCreateDto input, IMediator mediator)
30+
public static async Task<Results<Created<TodoDto>, BadRequest>> CreateTodo(TodoCreateDto input, IMediator mediator)
3231
{
3332
var result = await mediator.Send(new CreateTodoCommand(input));
3433
if (result.IsError && result.Exception is not null)

0 commit comments

Comments
 (0)