public ServicesController(ServicesContext context, IResponce responce, IConfiguration configuration, IImageHandler imageHandler) { _context = context; _responce = responce; _configuration = configuration; _imageHandler = imageHandler; }
public AccountsController(ServicesContext context, IAccount account, IResponce responce, IImageHandler imageHandler, IConfiguration configuration) { _context = context; _configuration = configuration; _account = account; _responce = responce; _imageHandler = imageHandler; }
public staffController(ServicesContext context, IResponce responce, IImageHandler imageHandler, IAutentication auth, IConfiguration configuration) { _context = context; _responce = responce; _imageHandler = imageHandler; _auth = auth; _configuration = configuration; }
//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; }
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); } }
public ShedulesController(ServicesContext context, IResponce responce) { _context = context; _responce = responce; }