MongoDB + PostgreSQL Injection
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Infrastructure.Services.MongoDB;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace HealthcareManager.API.Controllers
|
||||
{
|
||||
public class ChatController : BaseApiController
|
||||
{
|
||||
private readonly MongoDbService _mongoDbService;
|
||||
|
||||
public ChatController(MongoDbService mongoDbService)
|
||||
{
|
||||
_mongoDbService = mongoDbService;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,45 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Infrastructure.Data;
|
||||
using Core.Entities;
|
||||
|
||||
namespace HealthcareManager.API.Controllers
|
||||
{
|
||||
public class DoctorsController : BaseApiController
|
||||
[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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user