public async Task <IActionResult> ScheduleMechanicVisit(long id, [FromBody] VeterinarianVisitModel model) { if (!(await CheckPetExistsById(id))) { return(NotFound()); } await _petsRepository.LogVeterinarianVisit(id, model.AppointmentDate); return(Ok()); }