예제 #1
0
        public async Task <IActionResult> ScheduleMechanicVisit(long id, [FromBody] VeterinarianVisitModel model)
        {
            if (!(await CheckPetExistsById(id)))
            {
                return(NotFound());
            }

            await _petsRepository.LogVeterinarianVisit(id, model.AppointmentDate);

            return(Ok());
        }