Exemplo n.º 1
0
 public async static Task<EntityResponse<PropertyType>> Delete(PropertyType propertyType)
 {
     using (var db = Database.Connect())
     {
         return await db.Entities.DeleteAsync<PropertyType>(propertyType);
     }
 }
Exemplo n.º 2
0
 public Property()
 {
     Type = new PropertyType();
     Features = new FeatureValue[] { };
     CreatedBy = new User();
     LastModifiedBy = new User();
     OwnerOrganization = new Organization();
 }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 public async static Task<object> Delete(PropertyType propertyType)
 {
     return Json.Reserialize(await DatabaseApi.PropertyTypes.Delete(propertyType));
 }