protected override Task <MemoListItem> ExecuteAsync(MemoFromIdQuery query)
        {
            var id = new MemoId(query.MemoId).GetGuid();

            return(_context.Memos.Where(i => i.Id == id)
                   .Select(i => new MemoListItem
            {
                Id = MemoId.With(i.Id).Value,
                Document = i.Model.Document,
                History = i.Model.History,
                Status = i.Model.Status
            }).FirstOrDefaultAsync());
        }
예제 #2
0
 public override void AppendExtraFieldsValues()
 {
     base.AppendExtraFieldsValues();
     if (UserId.HasValue)
     {
         Filters.Add(new GenericDataDbFilter("UserId", UserId.ToString()));
     }
     if (CalendarJobStatus.HasValue)
     {
         Filters.Add(new GenericDataDbFilter("JobStatus", ((int)CalendarJobStatus.Value).ToString()));
     }
     if (MemoId.HasValue)
     {
         Filters.Add(new GenericDataDbFilter("MemoItemId", MemoId.ToString()));
     }
 }