public async Task <string> getPropertyData(string data) { string [] id = data.Split(","); if (id != null) { if (!id[0].Equals("") && id[1].Equals("")) {//get all properties of a scoiety var propertiesData = await context.retrieveAll(id[0]); if (propertiesData == null) { return(null); } return(JsonConvert.SerializeObject(propertiesData)); } //get all property by id of a scoiety var PropertyData = await context.retrievePropertyBySidPid(id[0], id[1]); if (PropertyData == null) { return(null); } return(JsonConvert.SerializeObject(PropertyData)); } return("no response wrong parameters!"); }
public async Task <string> getTest() { var vehichleData = await context.retrieveAll("SitaraSapna@123"); return(JsonConvert.SerializeObject(vehichleData)); }
public async Task <string> getAllPropertiesData(string societyId) { var propertyData = await context.retrieveAll(societyId); return(JsonConvert.SerializeObject(propertyData)); }