public IEnumerable<AgendaItemDto> GetAgendaItemsByVisitAndEmployee(int visitId)
        {
            var employeesService = new EmployeesService();

            string[] credentials = HelperClass.DecodeCredentials(Request);
            int userId = employeesService.GetIdByEmail(credentials[0]);
            return _agendaItemsService.GetAgendaItemsByVisitAndEmployee(visitId, userId);
        }
        public IList<AgendaItemDto> GetAllAgendaItems()
        {
            Log.Debug("GET " + System.Reflection.MethodBase.GetCurrentMethod().Name + " called");
            var employeesService = new EmployeesService();

            string[] credentials = HelperClass.DecodeCredentials(Request);
            int userId = employeesService.GetIdByEmail(credentials[0]);

            return _agendaItemsService.GetAllAgendaItems(userId);
        }
Beispiel #3
0
 public EmployeesController()
 {
     _employeesService = new EmployeesService();
 }