// GET: PermissionTypes/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PermissionTypeViewModel permissionType = Mapper.Map <PermissionTypeViewModel>(permissionTypeService.Get(id.Value));

            if (permissionType == null)
            {
                return(HttpNotFound());
            }
            return(View(permissionType));
        }