public MeetingDataViewModel(MeetingData meetingData)
 {
     string format = new CultureInfo("he-IL").DateTimeFormat.ShortDatePattern;
     Id = meetingData.Id;
     CreationDate = meetingData.CreationDate.ToString(format);
     UpdateDate = meetingData.UpdateDate.HasValue ? meetingData.UpdateDate.Value.ToString(format) : string.Empty;
     Subject = meetingData.MeetingSubject;
     Summary = meetingData.MeetingSummary;
 }
Beispiel #2
0
        public void SaveSummary(string creationDate, string meetingSubject, string meetingSummary, List<string> tasks, List<string> assignments, List<int> users)
        {
            var meetingData = new MeetingData();
            meetingData.MeetingSubject = meetingSubject;
            meetingData.MeetingSummary = meetingSummary;
            meetingData.CreationDate = DateTime.ParseExact(creationDate, "dd/MM/yyyy", CultureInfo.InvariantCulture);
            _db.MeetingData.Add(meetingData);
            _db.SaveChanges();

            UpdateData(meetingData.Id, tasks, assignments, users, null, null);
        }