public async Task <MessageReport> AddDiary(WM_DiaryMobile model)
        {
            var obj = new WM_Diary()
            {
                Id          = ObjectId.GenerateNewId().ToString(),
                Title       = model.Title,
                Description = model.Description,
                DateCreated = DateTime.Now,
                ScheduleId  = model.ScheduleId,
                UserId      = model.UserId
            };

            return(await _WM_DiaryRepository.Add(obj));
        }
Beispiel #2
0
 public async Task <MessageReport> Create(WM_Diary obj)
 {
     return(await _WM_DiaryRepository.Add(obj));
 }