コード例 #1
0
ファイル: DummyFaculty.cs プロジェクト: Akashhhhh/UIU_HRM
        public EducationalInformation GetDummyEducatino(Guid id)
        {
            EducationalInformation _educationalInformation = new EducationalInformation();

            _educationalInformation.UserId = id;

            _educationalInformation.CertificateImageName = "Certificate";
            _educationalInformation.CertificatePhysicalPath = "Certificate";
            _educationalInformation.CertificateVirtualPath = "~/UploadedEducationFiles/DefaultCertificate.png";
            _educationalInformation.CertificateImageFile =null;

            _educationalInformation.OptionalCertificateImageName = "Optional";
            _educationalInformation.OptionalCertificatePhysicalPath ="Optional";
            _educationalInformation.OptionalCertificateVirtualPath = "~/UploadedEducationFiles/DefaultCertificate.png";
            _educationalInformation.OptionalCertificateImageFile = null;

            return _educationalInformation;
        }
コード例 #2
0
 public void CreatEducation(EducationalInformation educationalInformation)
 {
     db.EducationalInformations.Add(educationalInformation);
     db.SaveChanges();
 }