public IHttpActionResult modifyAppointment(int id, [FromBody] ReAssingmentAppointment entity)
        {
            try
            {
                if (entity == null)
                {
                    ModelState.AddModelError("Entity", "First set the entity");
                }

                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                appointmentsServices.modifyAppointment(Convert.ToDateTime(entity.reassigmentDate), id, entity.doctorId);

                return(Ok());
            }
            catch (Exception e)
            {
                return(InternalServerError(e));
            }
        }