예제 #1
0
 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
     };
 }
예제 #2
0
파일: Proposal.cs 프로젝트: hanoitown/vnsf
 public static Proposal Create(Application application)
 {
     return new Proposal()
     {
         Id = Guid.NewGuid(),
         Application = application
     };
 }