/// <summary> /// Handles the specified request. /// </summary> /// <param name="request">The request.</param> /// <param name="response">The response.</param> protected override void Handle(GetLookupsByCategoryRequest request, GetLookupsByCategoryResponse response) { var lookups = _lookupProvider.GetAll(request.Category).ToList(); var lookupDtos = Mapper.Map <List <Lookup>, List <LookupDto> > (lookups); response.Lookups = lookupDtos; response.Category = request.Category; }