Exemplo n.º 1
0
        public async Task <IActionResult> EditStaff(Guid personId)
        {
            var person = await _unitOfWork.People.GetOneAsync(x => x.Id == personId,
                                                              include : p => p.Include(w => w.StaffInfo));

            var model = StaffInfo.Init(person);

            return(View(model));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> EditStaffOtherInformation(Guid personId)
        {
            var person = await _unitOfWork.People.GetOneAsync(x => x.Id == personId,
                                                              include : p => p.Include(w => w.StaffInfo).Include(x => x.PersonToClasses));

            var classes = await _unitOfWork.Classes.GetAsync(x => x.OrganizationId == _organizationId && x.IsActive);

            var model = StaffInfo.Init(person, classes);

            return(View(model));
        }