Example #1
0
        public async Task <IActionResult> AddProvSchedules(int locationid, int specid, ProvSchCreate model)
        {
            if (locationid != model.LocationId || specid != model.SpecId)
            {
                return(BadRequest(new ErrorResponse {
                    ErrorMessage = "LocationId/SpecializationId does not match"
                }));
            }

            await _repository.AddProviderSchedule(model);

            return(NoContent());
        }