public JsonResult GetTerritory(System.String id)
        {
            DataTableViewModel data1;

            GetTerritoryRequest request = new GetTerritoryRequest();

            request.TerritoryID = id;
            DetailTerritory_TerritoryDetailView data = _territoryService.GetTerritory(request).Territory.ConvertToDetailTerritory_TerritoryDetailView();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public JsonResult GetDetail(System.String id)
        {
            TerritoryDetailView vm      = new TerritoryDetailView();
            GetTerritoryRequest request = new GetTerritoryRequest();

            request.TerritoryID = id;
            GetTerritoryResponse response = _territoryService.GetTerritory(request);

            if (response.TerritoryFound)
            {
                vm = response.Territory.ConvertToTerritoryDetailView();
            }

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