46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Infrastructure.Data;
|
|
using Core.Entities;
|
|
|
|
namespace HealthcareManager.API.Controllers
|
|
{
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
public class DoctorsController : ControllerBase
|
|
{
|
|
private readonly HealthcareManagerContext _context;
|
|
|
|
public DoctorsController(HealthcareManagerContext context)
|
|
{
|
|
_context = context ?? throw new ArgumentNullException(nameof(context));
|
|
}
|
|
|
|
[HttpGet("{id}")]
|
|
public async Task<ActionResult<Doctor>> GetDoctor(int id)
|
|
{
|
|
return NotFound();
|
|
}
|
|
|
|
[HttpPost]
|
|
public async Task<ActionResult<Doctor>> PostDoctor(Doctor doctor)
|
|
{
|
|
return NotFound();
|
|
}
|
|
|
|
[HttpPut("{id}")]
|
|
public async Task<IActionResult> PutDoctor(int id, Doctor doctor)
|
|
{
|
|
return NotFound();
|
|
}
|
|
|
|
[HttpDelete("{id}")]
|
|
public async Task<IActionResult> DeleteDoctor(int id)
|
|
{
|
|
return NotFound();
|
|
}
|
|
}
|
|
}
|