コード例 #1
0
        List <DivisionsLocationOption> DivisionLocationCollections(String webId, String masterId)
        {
            List <DivisionsLocationOption> divisionLocationOptions = null;

            try
            {
                DivisionLoctionModel divisionLoctionModel = new DivisionLoctionModel
                {
                    MasterId = masterId,
                    WebId    = webId
                };

                String jsonRequestData = JsonConvert.SerializeObject(divisionLoctionModel);

                String response = this._httpOperations.PostRequest("DivisionLocation/GetDivisionLocation", jsonRequestData).ToString();

                if (!String.IsNullOrWhiteSpace(response))
                {
                    divisionLocationOptions = JsonConvert.DeserializeObject <List <DivisionsLocationOption> >(response);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(divisionLocationOptions);
        }
コード例 #2
0
 public ActionResult <List <DivisionsLocationOption> > GetDivisionLocation([FromBody] DivisionLoctionModel divisionLoctionModel)
 {
     return(this._divisionsLocationService.GetDivisionLocation("507981", divisionLoctionModel.MasterId));
 }