30 lines
774 B
C#
30 lines
774 B
C#
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 UserstoryController : ControllerBase
|
|
{
|
|
private readonly TaskContext _context;
|
|
|
|
public UserstoryController(TaskContext context)
|
|
{
|
|
_context = context;
|
|
}
|
|
|
|
// GET: api/Tasks
|
|
[HttpGet]
|
|
public async Task<ActionResult<IEnumerable<ScrumUserstory>>> GetUserstory()
|
|
{
|
|
return await _context.Userstories.ToListAsync();
|
|
}
|
|
}
|
|
} |