示例#1
0
 public IngrEvent Execute(GetEventByIdRequest request)
 {
     using (var db = databaseFactory.CreateNew())
     {
         return(db.IngrEvents.SingleOrDefault(x => x.Id == request.EventId));
     }
 }
 public GetEventByIdResponse GetEventById(GetEventByIdRequest request)
 {
     return(ExecuteAction <GetEventByIdResponse>(request));
 }
示例#3
0
 public GetEventByIdResponse GetEventById(GetEventByIdRequest request)
 {
     return(Execute(() => InternalService.GetEventById(request)));
 }