Ejemplo n.º 1
0
        public IActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(RedirectToAction("Index"));
            }
            var findStaff = _staffService.GetAdmin(id);

            StaffEditViewModel viewModel = new StaffEditViewModel()
            {
                Id       = findStaff.Id,
                FullName = findStaff.FullName,
                BioText  = findStaff.BioText,
                Sector   = findStaff.Sector,
                StatusId = findStaff.StatusId,
                CampusId = findStaff.CampusId
            };

            return(View(viewModel));
        }