Exemplo n.º 1
0
        public async Task <DependentViewModel> DependentById(int DependentId)
        {
            var d = await _dependentRepository.DependentById(DependentId);

            DependentViewModel dVM = new DependentViewModel();

            dVM.DependentId = d.DependentId;
            dVM.TenantId    = d.TenantId;
            dVM.FirstName   = d.FirstName;
            dVM.LastName    = d.LastName;
            dVM.Gender      = d.Gender;
            dVM.Age         = d.Age;
            dVM.Email       = d.Email;
            dVM.Phone       = d.Phone;
            dVM.Notes       = d.Notes;

            return(dVM);
        }