Beispiel #1
0
 public ProfesorController(ITeacher teacher, IContactType contactType,
                           IDocumentType documentType, ICountry country, ICity city,
                           IAddressType addressType, IStatus status, IEducationType educationType,
                           ITeacherEducation teacherEducation, INationality nationality, IMatirialStatus matirialStatus, IProvince province,
                           ITeacherHiringType teacherHiringType, ITeacherFileType teacherFileType, ITeacherFile teacherFile,
                           IWebHostEnvironment hostingEnv, IConfiguration config, IContactAddress contactAddress, IContactCommunication contactCommunication, IUniversity university
                           )
 {
     _teacher              = teacher;
     _contactType          = contactType;
     _documentType         = documentType;
     _country              = country;
     _city                 = city;
     _addressType          = addressType;
     _status               = status;
     _educationType        = educationType;
     _teacherEducation     = teacherEducation;
     _nationality          = nationality;
     _matirialStatus       = matirialStatus;
     _province             = province;
     _teacherHiringType    = teacherHiringType;
     _teacherFileType      = teacherFileType;
     _teacherFile          = teacherFile;
     _hostingEnv           = hostingEnv;
     _config               = config;
     _contactAddress       = contactAddress;
     _contactCommunication = contactCommunication;
     _university           = university;
 }
Beispiel #2
0
        public void ValidateAddress(IAddressType address)
        {
            if (address == null)
            {
                Content.ErrorMessages.Add("The Physical Address is mandatory.");
                return;
            }

            if (string.IsNullOrWhiteSpace(address.AddressLine1Txt))
            {
                Content.ErrorMessages.Add($"[{address.TypeName}] The Address 1 is mandatory.");
            }

            if (string.IsNullOrWhiteSpace(address.CityNm))
            {
                Content.ErrorMessages.Add($"[{address.TypeName}] The City is mandatory.");
            }

            if (string.IsNullOrWhiteSpace(address.ZipCode))
            {
                Content.ErrorMessages.Add($"[{address.TypeName}] The Zip Code is mandatory.");
            }

            if (string.IsNullOrWhiteSpace(address.State))
            {
                Content.ErrorMessages.Add($"[{address.TypeName}] The State is mandatory.");
            }
        }
Beispiel #3
0
 public RepresentanteController(IAgent agent, IContactType contactType, IDocumentType documentType,
                                IAgentType agentType, IAddressType addressType, ICountry country, IProvince province, ICity city)
 {
     _agent        = agent;
     _contactType  = contactType;
     _documentType = documentType;
     _agentType    = agentType;
     _addressType  = addressType;
     _country      = country;
     _province     = province;
     _city         = city;
 }
 public InstitucionFomadoraController(IUniversity university,
                                      IStatus status,
                                      IAddressType addressType,
                                      ICountry country,
                                      IProvince province,
                                      ICity city)
 {
     _university  = university;
     _status      = status;
     _addressType = addressType;
     _country     = country;
     _province    = province;
     _city        = city;
 }
Beispiel #5
0
 public ProfesorController(ITeacher teacher, IContactType contactType,
                           IDocumentType documentType, ICountry country, ICity city,
                           IAddressType addressType, IStatus status, IEducationType educationType,
                           ITeacherEducation teacherEducation, INationality nationality, IMatirialStatus matirialStatus, IProvince province
                           )
 {
     _teacher          = teacher;
     _contactType      = contactType;
     _documentType     = documentType;
     _country          = country;
     _city             = city;
     _addressType      = addressType;
     _status           = status;
     _educationType    = educationType;
     _teacherEducation = teacherEducation;
     _nationality      = nationality;
     _matirialStatus   = matirialStatus;
     _province         = province;
 }