public object Get(GetShiftById request) { return(WithDb(db => Logic.GetById(request.Id))); }
public async Task <Shift> HandleAsync(GetShiftById query, CancellationToken ct) { var result = ShiftRepository.GetByIdAsync(query.Id); return(await result); }