Ejemplo n.º 1
0
        public async Task <IActionResult> Index(int pageindex = 1, MessageNote?message = null)
        {
            var user = await GetCurrentUserAsync();

            ViewData["Exist"] =
                message == MessageNote.Exist ? "Allocation of Lecture to their Courses Generated;":
                message == MessageNote.Add ? "Select One of the Record"
                : "";

            var model = PagingList.Create(await _mappingService.HistoyofMapping(user.DepartmentID), 5, pageindex);

            return(View(model));
        }