Example #1
0
        public async Task <IActionResult> ApproveAdminAppointment(string id)
        {
            if (!ModelState.IsValid)
            {
                return(null);
            }

            if (id != null)
            {
                await appointmentRepository.ApproveAdminAppointment(id);

                return(Ok("Success"));
            }
            return(BadRequest("Not Successful"));
        }