Example #1
0
        public IActionResult Get(int id)
        {
            AppointmentLogic aptLogic = new AppointmentLogic(_unitOfWork);

            Appointment apt = aptLogic.ReadById(id);

            if (apt != null)
            {
                return(new JsonResult(apt));
            }
            else
            {
                return(NotFound());
            }
        }