/// <summary>
 /// Crete From WorkPlace Type Response domain model to web model
 /// </summary>
 public static Models.WorkPlaceTypeSearchRequestResponse CreateFrom(this WorkPlaceTypeSearchRequestResponse source)
 {
     return(new Models.WorkPlaceTypeSearchRequestResponse
     {
         WorkPlaceTypes = source.WorkPlaceTypes.Select(workPlacetype => workPlacetype.CreateFromm()),
         TotalCount = source.TotalCount
     });
 }
        /// <summary>
        /// Get Workplace Type
        /// </summary>
        public Models.WorkPlaceTypeSearchRequestResponse Get([FromUri] WorkplaceTypeSearchRequest request)
        {
            if (request == null || !ModelState.IsValid)
            {
                throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
            }
            WorkPlaceTypeSearchRequestResponse data = workplaceTypeService.SearchWorkplaceType(request);

            return(data.CreateFrom());
        }