public async static Task<EntityResponse<PropertyType>> Delete(PropertyType propertyType) { using (var db = Database.Connect()) { return await db.Entities.DeleteAsync<PropertyType>(propertyType); } }
public Property() { Type = new PropertyType(); Features = new FeatureValue[] { }; CreatedBy = new User(); LastModifiedBy = new User(); OwnerOrganization = new Organization(); }
public async static Task<EntityResponse<PropertyType>> Post(PropertyType propertyType) { using (var db = Database.Connect()) { var post = new PostEntityRequest<PropertyType>(propertyType); var result = await db.Entities.PostAsync<PropertyType>(post); return result; } }
public async static Task<object> Delete(PropertyType propertyType) { return Json.Reserialize(await DatabaseApi.PropertyTypes.Delete(propertyType)); }