//"*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**" public OutlookController(netflix_prContext context) { _context = context; ExchangeService _service = new ExchangeService(); ExchangeCredentials _credentials = new WebCredentials("*****@*****.**", "N3ljcJ2d1HJtfQn0YJjS"); _service.Credentials = (_credentials); _service.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx"); foreach (string user in _Users) { var userMailbox = new Mailbox(user); var folderId = new FolderId(WellKnownFolderName.Tasks, userMailbox); ItemView itemView = new ItemView(int.MaxValue); var userItems = _service.FindItems(folderId, itemView); var employee = (from p in _context.Employe where p.O365Id == user select p).First(); if (userItems.Result == null) { continue; } //List<WrongProject> tasksWithWrongProjectId = CreateTask(userItems, employee); //if (tasksWithWrongProjectId.Any()) //{ // //SendModificationEmail(employee, tasksWithWrongProjectId); //} } //if (projectIds.Any()) //{ // RecalculatCompletionPercentage(); //} }
public NotificationController(netflix_prContext context) { _context = context; }
public EmployeController(netflix_prContext context) { _context = context; }
public TaskController(netflix_prContext context) { _context = context; }
public ProjectController(netflix_prContext context) { _context = context; }
public DocumentController(netflix_prContext context) { _context = context; }