/// <summary>
 /// Deletes the given model.
 /// </summary>
 /// <param name="model">The model</param>
 public static void Delete(this PostTypeService service, PostType model)
 {
     service.DeleteAsync(model).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets the model with the specified id.
 /// </summary>
 /// <param name="id">The unique i</param>
 /// <returns></returns>
 public static PostType GetById(this PostTypeService service, string id)
 {
     return(service.GetByIdAsync(id).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes the model with the specified id.
 /// </summary>
 /// <param name="id">The unique id</param>
 public static void Delete(this PostTypeService service, string id)
 {
     service.DeleteAsync(id).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets all available models.
 /// </summary>
 /// <returns>The available models</returns>
 public static IEnumerable <PostType> GetAll(this PostTypeService service)
 {
     return(service.GetAllAsync().GetAwaiter().GetResult());
 }