예제 #1
0
 private Response HandleGetAgeCategories(Request request)
 {
     if (request.RequestType != RequestType.GetAgeCategoriesRequest)
     {
         return(new Response {
             ResponseType = ResponseType.InvalidRequest
         });
     }
     return
         (new Response
     {
         ResponseType = ResponseType.OkResponse,
         AgeCategories = { ProtoUtils.AgeCategoryListToDto(_ageCategoryService.GetAll()) }
     });
 }