Exemplo n.º 1
0
        public ActionResult <List <ApplicationForManagementViewModel> > GetStudentManagementDetails(int id)
        {
            var applications          = _applicationService.GetApplicationsForInternship(id);
            var applicationManagement = new List <ApplicationForManagementViewModel>();

            foreach (var app in applications)
            {
                var appManagement = ApplicationMapper.ToApplicationManagement(app);
                applicationManagement.Add(appManagement);
            }

            var obj = new ApplicationsListObject()
            {
                Applications = applicationManagement
            };

            return(Ok(JsonConvert.SerializeObject(obj)));
        }