예제 #1
0
        public async Task <List <InteractionResponseModel> > GetAllInteractions()
        {
            var interactions = await _interactionsRepository.GetAllInteractions();

            var interactionList = new List <InteractionResponseModel>();

            foreach (var interaction in interactions)
            {
                interactionList.Add(new InteractionResponseModel
                {
                    Id       = interaction.Id,
                    ClientId = interaction.ClientId,
                    EmpId    = interaction.EmpId,
                    type     = interaction.IntType,
                    Date     = interaction.IntDate,
                    Remarks  = interaction.Remarks,
                });
            }
            return(interactionList);
        }
예제 #2
0
 public IActionResult StaffInteractions()
 {
     //TODO Ensure user is rerouted if not logged in
     return(View(intRepo.GetAllInteractions().ToList()));
 }