예제 #1
0
        public async Task <IActionResult> EditChild(Guid personId)
        {
            var person = await _unitOfWork.People.GetOneAsync(x => x.Id == personId,
                                                              include : p => p.Include(w => w.ChildInfo));


            var model = ChildInfo.Init(person);

            return(View(model));
        }
예제 #2
0
        public async Task <IActionResult> EditChildEductionInformation(Guid personId)
        {
            var person = await _unitOfWork.People.GetOneAsync(x => x.Id == personId,
                                                              include : p => p.Include(w => w.ChildInfo).Include(x => x.PersonToClasses));

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

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

            return(View(model));
        }