Exemplo n.º 1
0
        public void SetUser(Relative relative)
        {
            var user = relative.RelativeUser;
            Name = user.FullName;
            var jobs= user.Jobs;
            if(jobs.Any())
            {
                Work = jobs[0].CompanyName;
            }

            var edus = user.Educations;
            if (edus.Any())
            {
                Education = edus[0].SchoolName;
            }
        }
 public JsonResult Edit(Relative model)
 {
     var result = UpdateUserOwnedEntity(model);
     return result;
 }
Exemplo n.º 3
0
 public RelativeVm(Relative model)
 {
     SetUser(model);
 }