コード例 #1
0
 public ServicesController(ServicesContext context, IResponce responce,
                           IConfiguration configuration, IImageHandler imageHandler)
 {
     _context       = context;
     _responce      = responce;
     _configuration = configuration;
     _imageHandler  = imageHandler;
 }
コード例 #2
0
 public AccountsController(ServicesContext context,
                           IAccount account, IResponce responce, IImageHandler imageHandler, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
     _account       = account;
     _responce      = responce;
     _imageHandler  = imageHandler;
 }
コード例 #3
0
 public staffController(ServicesContext context, IResponce responce, IImageHandler imageHandler,
                        IAutentication auth, IConfiguration configuration)
 {
     _context       = context;
     _responce      = responce;
     _imageHandler  = imageHandler;
     _auth          = auth;
     _configuration = configuration;
 }
コード例 #4
0
 //private UserManager<ServicesModel.Models.Auth.Auth> _manager;
 public AuthsController(ServicesContext context, IAutentication auth, IResponce responce,
                        IAccount account)
 {
     _context  = context;
     _auth     = auth;
     _responce = responce;
     _account  = account;
     // _manager = manager;
 }
コード例 #5
0
        private static bool Question(IRequest message, ParticipatingInfo user, out IResponce handle)
        {
            var qHandler =
                Configure.Container.ResolveAll <IQuestionHandler>().SingleOrDefault(it => it.Accept(user));

            if (qHandler == null)
            {
                {
                    if (user.Completed())
                    {
                        handle = new QuestionRequest()
                        {
                            Message  = user.ToString() + @"
                    /new - ورود مجدد

                    /start    - شروع
                    ",
                            UserName = message.UserName
                        }
                    }
                    ;
                    else
                    {
                        handle = new QuestionRequest()
                        {
                            Message  = @"
                    /new - ورود مجدد

                    /start    - شروع
                    ",
                            UserName = message.UserName
                        }
                    };
                    return(true);
                }
            }
            handle = qHandler.Handle(user);
            return(true);

            return(false);
        }
    }
コード例 #6
0
 public ShedulesController(ServicesContext context, IResponce responce)
 {
     _context  = context;
     _responce = responce;
 }