-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Parameter, Tag, Status services
Checked if any of Parameters, Tags or Statuses are used before delating/updating.
- Loading branch information
Showing
9 changed files
with
707 additions
and
91 deletions.
There are no files selected for viewing
479 changes: 478 additions & 1 deletion
479
Server/ReasnAPI/ReasnAPI.Tests/Services/EventServicesTest.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Mvc; | ||
using ReasnAPI.Models.DTOs; | ||
using ReasnAPI.Services; | ||
|
||
namespace ReasnAPI.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
[ApiController] | ||
public class TestController : Controller | ||
{ | ||
|
||
private readonly TagService _tagService; | ||
|
||
public TestController(TagService tagService) | ||
{ | ||
_tagService = tagService; | ||
} | ||
|
||
[HttpGet] | ||
public IActionResult Add() | ||
{ | ||
|
||
var tagDto = new TagDto | ||
{ | ||
Name = "TestTagasd" | ||
}; | ||
|
||
var result = _tagService.CreateTag(tagDto); | ||
|
||
return Ok(result); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.