/// <summary> /// Deletes the given model. /// </summary> /// <param name="model">The media</param> public static void Delete(this MediaService service, Media model) { service.DeleteAsync(model).GetAwaiter().GetResult(); }
/// <summary> /// Deletes the media with the given id. /// </summary> /// <param name="id">The unique id</param> public static void Delete(this MediaService service, Guid id) { service.DeleteAsync(id).GetAwaiter().GetResult(); }