Exemple #1
0
 /// <summary>
 /// Deletes the given model.
 /// </summary>
 /// <param name="model">The model</param>
 public static void Delete(this PageTypeService service, PageType model)
 {
     service.DeleteAsync(model).GetAwaiter().GetResult();
 }
Exemple #2
0
 /// <summary>
 /// Gets the model with the specified id.
 /// </summary>
 /// <param name="id">The unique i</param>
 /// <returns></returns>
 public static Models.PageType GetById(this PageTypeService service, string id)
 {
     return(service.GetByIdAsync(id).GetAwaiter().GetResult());
 }
Exemple #3
0
 /// <summary>
 /// Deletes the model with the specified id.
 /// </summary>
 /// <param name="id">The unique id</param>
 public static void Delete(this PageTypeService service, string id)
 {
     service.DeleteAsync(id).GetAwaiter().GetResult();
 }
Exemple #4
0
 /// <summary>
 /// Gets all available models.
 /// </summary>
 /// <returns>The available models</returns>
 public static IEnumerable <PageType> GetAll(this PageTypeService service)
 {
     return(service.GetAllAsync().GetAwaiter().GetResult());
 }