Class AvailabilityController
- Namespace
- KadicErp.WebApi.Controllers.HealthCare
- Assembly
- KadicErp.WebApi.dll
[Route("api/healthcare/availability")]
[Authorize]
[ApiController]
public class AvailabilityController : ControllerBase
- Inheritance
-
object
ControllerBase
AvailabilityController
Constructors
AvailabilityController(ISender, ICurrentUser, ITenantIdContext, IStringLocalizer<GeneralMessages>)
public AvailabilityController(ISender sender, ICurrentUser currentUser, ITenantIdContext tenantContext, IStringLocalizer<GeneralMessages> localizer)
Parameters
sender ISender
currentUser ICurrentUser
tenantContext ITenantIdContext
localizer IStringLocalizer<GeneralMessages>
Methods
GetAvailableSlots(Guid, DateTime)
[HttpGet("slots")]
[Authorize(Policy = "HEALTHCARE_AVAILABILITY_VIEW")]
public Task<IActionResult> GetAvailableSlots(Guid staffId, DateTime date)
Parameters
staffId Guid
date DateTime
Returns
- Task<IActionResult>
GetDoctorAvailability(Guid?, DateTime, DateTime)
[HttpGet("doctors")]
[Authorize(Policy = "HEALTHCARE_AVAILABILITY_VIEW")]
public Task<IActionResult> GetDoctorAvailability(Guid? specialtyId, DateTime dateFrom, DateTime dateTo)
Parameters
specialtyId Guid?
dateFrom DateTime
dateTo DateTime
Returns
- Task<IActionResult>