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); }
public ActionResult <List <DivisionsLocationOption> > GetDivisionLocation([FromBody] DivisionLoctionModel divisionLoctionModel) { return(this._divisionsLocationService.GetDivisionLocation("507981", divisionLoctionModel.MasterId)); }