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)); }
public async Task <ReadRelationDTO> GetRelation(EntityDTO Relation) { var relation = await _relationService.GetRelation(Relation); return(relation); }