public void SetSubmittedFile(SubmittedFile submittedFile, Boolean allowRemove, Boolean allowUpload) { if (submittedFile != null) { Submitted = new dtoSubmittedFile(submittedFile); } AllowRemove = allowRemove; AllowUpload = allowUpload; }
public dtoCallSubmissionFile(RequestedFile requestedFile, SubmittedFile submittedFile, Boolean allowRemove, Boolean allowUpload) { Id = requestedFile.Id; FileToSubmit = new dtoCallRequestedFile(requestedFile); if (submittedFile != null) { Submitted = new dtoSubmittedFile(submittedFile); } AllowRemove = allowRemove; AllowUpload = allowUpload; FieldError = Domain.FieldError.None; }