public RelatedPersonsCountResponse(string privateNumber, string fullName, PersonConnectionType connectionType, int relatedPersonsCount)
 {
     PrivateNumber       = privateNumber;
     FullName            = fullName;
     ConnectionType      = connectionType;
     RelatedPersonsCount = relatedPersonsCount;
 }
Esempio n. 2
0
        public async Task <IActionResult> AddRelatedPerson(int relatedPersonId, int personId, PersonConnectionType connectionType)
        {
            await _relatedPersonsRepo.AddAsync(new RelatedPerson()
            {
                PersonId = personId, RelatedPersonId = relatedPersonId, ConnectionType = connectionType
            });

            return(Ok());
        }
 public RelatedPersonViewModel(PersonConnectionType connectionType, string fullName, string privateNumber)
 {
     ConnectionType = connectionType;
     FullName       = fullName;
     PrivateNumber  = privateNumber;
 }