public static ApplicationDocument NewDocument(Application app, ApplicationForm form, string name, string description, string contentType, int contentLength, string path) { return new ApplicationDocument() { Id = Guid.NewGuid(), FileName = name, Description = description, ContentType = contentType, ContentLength = contentLength, Path = path, CreateDate =DateTime.Now, Form = form, Application = app }; }
public static Proposal Create(Application application) { return new Proposal() { Id = Guid.NewGuid(), Application = application }; }