public DataUploadController(ApplicationUserManager userManager, IUploadManager uploadMgr, IVoterManager votMgr, IExcelProcessor excel) { _uploadMgr = uploadMgr; _votMgr = votMgr; _excel = excel; _userManager = userManager; }
public AccountController(IVoterManager votMgr) { _votMgr = votMgr; //_roleMgr = roleMgr; // _excel = excel; }
public VotersController( ApplicationDbContext context, IVoterManager voterManager, IUserService userService ) { _context = context; this.voterManager = voterManager; this.userService = userService; }
//private string logedInUser; //private string sidUser; //private ClaimsPrincipal principal; public RatingController(IRatingManager ratMgr, IVoterManager votMgr, IRestaurantManager restMgr) { _ratMgr = ratMgr; _votMgr = votMgr; _restMgr = restMgr; //Get the current claims principal //principal = (ClaimsPrincipal)Thread.CurrentPrincipal; //// Get the claims values //logedInUser = principal.Claims.Where(c => c.Type == ClaimTypes.NameIdentifier).Select(c => c.Value).SingleOrDefault(); //sidUser = principal.Claims.Where(c => c.Type == ClaimTypes.Sid).Select(c => c.Value).SingleOrDefault(); }
public ScoreController(IScoreManager scoreMgr, IVoterManager votMgr, IRestaurantManager restMgr) { _scoreMgr = scoreMgr; _votMgr = votMgr; _restMgr = restMgr; }
public UploadManager(IDataRepository db, IExcelProcessor excel, IVoterManager votgr) { _db = db; _excel = excel; _votgr = votgr; }
// private readonly UserManager<ApplicationUser> _applicationUser; public VoterController(IVoterManager votMgr, IExcelProcessor excel) { _votMgr = votMgr; _excel = excel; //_applicationUser = user; }
public VoterController(IVoterManager votMgr) { _votMgr = votMgr; }
public VotersController(IVoteManager voteManager, IVoterManager voterManager) { VoteManager = voteManager; VoterManager = voterManager; }
public RatingController(IRatingManager ratMgr, IVoterManager votMgr, IRestaurantManager restMgr) { _ratMgr = ratMgr; _votMgr = votMgr; _restMgr = restMgr; }
public VotersController(IVoterManager voterManager) { this.voterManager = voterManager; }