Changed naming

This commit is contained in:
Niggl1999
2020-06-04 08:37:51 +02:00
parent e1c1839506
commit d8d79c6ee8
2 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ScrumTaskboard;
namespace ScrumTaskboard.Controllers
{
[Route("[controller]")]
[ApiController]
public class UserstoriesController : ControllerBase
{
private readonly TaskContext _context;
public UserstoriesController(TaskContext context)
{
_context = context;
}
// GET: api/Tasks
[HttpGet]
public async Task<ActionResult<IEnumerable<ScrumUserstory>>> GetUserstory()
{
return await _context.Userstories.ToListAsync();
}
}
}