public RelatedPersonsCountResponse(string privateNumber, string fullName, PersonConnectionType connectionType, int relatedPersonsCount)
 {
     PrivateNumber       = privateNumber;
     FullName            = fullName;
     ConnectionType      = connectionType;
     RelatedPersonsCount = relatedPersonsCount;
 }
Пример #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());
        }
Пример #3
0
 public RelatedPersonViewModel(PersonConnectionType connectionType, string fullName, string privateNumber)
 {
     ConnectionType = connectionType;
     FullName       = fullName;
     PrivateNumber  = privateNumber;
 }