Example #1
0
        public JsonResult GetDetail(System.Int32 id)
        {
            RestrictionDetailView vm      = new RestrictionDetailView();
            GetRestrictionRequest request = new GetRestrictionRequest();

            request.RestrictionId = id;
            GetRestrictionResponse response = _restrictionService.GetRestriction(request);

            if (response.RestrictionFound)
            {
                vm = response.Restriction.ConvertToRestrictionDetailView();
            }

            return(Json(vm, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetRestriction(System.Int32 id)
        {
            DataTableViewModel data1;

            GetRestrictionRequest request = new GetRestrictionRequest();

            request.RestrictionId = id;
            DetailRestriction_RestrictionDetailView data = _restrictionService.GetRestriction(request).Restriction.ConvertToDetailRestriction_RestrictionDetailView();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }