public PatientAppointementController()
 {
     ServiceRDV      = new ServiceAppointement();
     MyServiceDoctor = new ServiceDoctor();
     servicereason   = new ServiceReason();
     servicePatient  = new ServicePatient();
     serviceUser     = new ServiceUser();
     serviceAvail    = new ServiceAvailibilities();
     serviceInter    = new ServiceIntervantion();
 }
Esempio n. 2
0
        private static string GetMessage(ServiceReason reason)
        {
            switch (reason)
            {
            case ServiceReason.InvalidCredentials:
                return(Constants.ServiceMessages.INVALID_CREDENTIALS);

            case ServiceReason.InvalidUserRequest:
                return(Constants.ServiceMessages.INVALID_USER_REQUEST);

            case ServiceReason.ActivationError:
                return(Constants.ServiceMessages.ACTIVATION_ERROR);

            case ServiceReason.ResetPasswordError:
                return(Constants.ServiceMessages.RESET_PASSWORD_ERROR);

            default:
                return(Constants.ServiceMessages.INVALID_OPERATION);
            }
        }
Esempio n. 3
0
 public ServiceException(ServiceReason reason) : base(GetMessage(reason))
 {
     Reason = reason;
 }