public HttpResponseMessage Get()
        {
            List <PermitTypeDTO> permitTypelist = service.getAll();

            return(Request.CreateResponse(HttpStatusCode.OK, permitTypelist));
        }
 public IViewComponentResult Invoke()
 {
     return(View(permitTypeService.getAll()));
 }