public async Task <bool> registerProperty([FromBody] Property property)//ActionResult<Admin> { var propertyData = await context.retrieveByPropertyId(property.propertyId); propertyData = JsonConvert.SerializeObject(propertyData); if (propertyData.ToString() == "[]") { await context.insert(property); return(true); } return(false); }
public async Task <string> registerPropertiesAll([FromBody] Property[] Property) { string flag = await context.insert(Property); return(flag); }