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)); }
public GetEventByIdResponse GetEventById(GetEventByIdRequest request) { return(Execute(() => InternalService.GetEventById(request))); }