public bool SendRandomNumber(string mobile, string randomNumber, BaseServiceConfig config)
 {
     try
     {
         var resualtSendActivateCode =
             ClientHelper.GetScalarValue <string>(config.SendRandomNumberRelativeAddress + $"{mobile}/{randomNumber}", config);
         if (resualtSendActivateCode == null)
         {
             resualtSendActivateCode = string.Empty;
         }
         return(resualtSendActivateCode != string.Empty);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }
 public TermsController(IOptions <BaseServiceConfig> options)
 {
     _baseServiceConfig = options.Value;
 }
Exemple #3
0
 public EducationalGroupsController(IOptions<BaseServiceConfig> options)
 {
     _baseServiceConfig = options.Value;
 }
 public PasswordController(IOptions <BaseServiceConfig> options)
 {
     _config = options.Value;
 }
 public EducationalClassesController(IOptions <BaseServiceConfig> options)
 {
     _baseServiceConfig          = options.Value;
     _educationalClassRepository = new EducationalClassRepository();
 }
 public ProfessorEducationalClassesController(IOptions <BaseServiceConfig> options)
 {
     _baseServiceConfig = options.Value;
 }
 public EducationalClassesStudentController(IOptions <BaseServiceConfig> options)
 {
     _baseServiceConfig = options.Value;
 }