Ejemplo n.º 1
0
        public ProjectAboutFile AddAboutFile(long projectId, long foreignID, ProjectFileType fileType, FileEntry filedto)
        {
            ProjectAboutFile entity = new ProjectAboutFile
            {
                ProjectId   = projectId,
                ForeignID   = foreignID,
                FileName    = filedto.FileName,
                FileSize    = filedto.FileSize,
                StoragePath = filedto.StoragePath,
                FileType    = fileType
            };

            entity.Created(this);
            repository.AddAboutFile(entity);
            repository.UnitOfWork.Commit();
            return(entity);
        }