示例#1
0
        public PartialViewResult GetRelation(int id)
        {
            var relation = relationService.GetRelation(id);

            ViewBag.Person = personService.GetPerson(relation.SourceId).ToString();

            ViewBag.RelationNames = relationNameService.GetRelationNames().Select(x => x.Name).ToArray();

            return(PartialView("Modal/_RelationPartial", relation));
        }
示例#2
0
        public async Task <ReadRelationDTO> GetRelation(EntityDTO Relation)
        {
            var relation = await _relationService.GetRelation(Relation);

            return(relation);
        }