예제 #1
0
 public FootballNote(NoteType type, Context context, IFormFile file, User createUser, NoteTarget target)
 {
     Context    = context;
     Photo      = new UploadFile(file);
     Editor     = new Editor(createUser, DateTime.Now);
     NoteTarget = target;
 }
예제 #2
0
 public FootballNote(FootballNoteData data)
 {
     _NoteId     = data.NoteId;
     _Context    = new Context(data.Title, data.Context);
     _Editor     = new Editor(data.CreateUserData.ToModel(), data.CreateDate, data.LastUpdateUserData.ToModel(), data.LastUpdateDate);
     _NoteTarget = new NoteTarget()
     {
         NoteId       = data.TargetNoteId,
         Session      = data.TargetSession,
         CategoryCode = data.TargetCategoryCode,
         PlaybookId   = data.TargetPlaybookId,
         ScheduleId   = data.TargetScheduleId
     };
 }
예제 #3
0
 public FootballNote(FootballNotePostRequestModel noteModel, User createUser)
 {
     Context    = new Context(noteModel.Title, noteModel.Context);
     Editor     = new Editor(createUser, DateTime.Now, createUser, DateTime.Now);
     NoteTarget = new NoteTarget()
     {
         NoteId       = noteModel.TargetNoteId,
         Session      = noteModel.TargetSession,
         CategoryCode = noteModel.TargetCategoryCode,
         PlaybookId   = noteModel.TargetPlaybookId,
         ScheduleId   = noteModel.TargetScheduleId
     };
     Photo = new UploadFile("");
 }