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); }
public IActionResult StaffInteractions() { //TODO Ensure user is rerouted if not logged in return(View(intRepo.GetAllInteractions().ToList())); }