public void UpdateAttendee(Attendee attendee)
 {
     if (_attendeeRepository.isAttendee(attendee.UserId))
     {
         _attendeeRepository.UpdateAttendee(attendee);
     }
 }
Example #2
0
        public string GetUserType(string id)
        {
            bool isAttendee    = _attendeeRepository.isAttendee(id);
            bool isCompany     = _companyRepository.isCompany(id);
            bool isCoordinator = _coordinatorRepository.IsCoordinator(id);

            return(isAttendee ? "Attendee" : (isCoordinator ? "Coordinator" : (isCompany ? "Company" : null)));
        }